saltRoot/cloud-init/cloud-init.txt

39 lines
858 B
Text
Raw Permalink Normal View History

2023-06-18 17:53:50 +02:00
#cloud-config
fqdn: 🧂
package_update: true
package_upgrade: true
packages:
- python-pygit2
runcmd:
- mkdir /run/salt-bootstrap
- curl -o /run/salt-bootstrap/bootstrap-salt.sh -L https://bootstrap.saltproject.io
- chmod +x /run/salt-bootstrap/bootstrap-salt.sh
- /run/salt-bootstrap/bootstrap-salt.sh -MP
ssh_pwauth: false
users:
- default
- name: salt
ssh_authorized_keys:
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIC9YAnzUrXGVCJOc73cqswYEeIRou8Y/I2gDOGeUouZv flipdot
sudo: true
write_files:
path: /etc/salt/master
permissions: '0660'
- content: |
# salt master config by cloud-init
fileserver_backend:
- gitfs
gitfs_remotes:
2023-06-18 18:07:59 +02:00
- https://code.flipdot.org/flipdot/saltRoot.git
2023-06-18 17:53:50 +02:00
gitfs_root: salt
path: /etc/salt/minion
permissions: '0660'
- content: |
# salt minion config by cloud-init
file_client: local