Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
cloudConfig: |
#cloud-config
preserve-hostname: false
hostname: ${self.resourceName}.corp.local
runcmd:
- curl -L https://bootstrap.saltstack.com -o install_salt.sh
- sudo sh install_salt.sh -A ${propgroup.SaltStackConfiguration.masterAddress}
- sudo salt-call grains.set serverRole app
- sudo salt-call grains.set databaseServer ${resource.database_Server_1.networks.address[0]}
- sudo salt-call state.highstate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment