39 lines
867 B
Text
39 lines
867 B
Text
|
#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:
|
||
|
- https://github.com/saltstack-formulas/salt-formula.git
|
||
|
gitfs_root: salt
|
||
|
|
||
|
path: /etc/salt/minion
|
||
|
permissions: '0660'
|
||
|
- content: |
|
||
|
# salt minion config by cloud-init
|
||
|
file_client: local
|
||
|
|