Skip to content

Instantly share code, notes, and snippets.

@josephholsten
Created March 14, 2023 20:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save josephholsten/790092ade4df4578aa6dac0c293b1f45 to your computer and use it in GitHub Desktop.
Save josephholsten/790092ade4df4578aa6dac0c293b1f45 to your computer and use it in GitHub Desktop.
#cloud-config
write_files:
- path: /etc/cinc/client.rb
permissions: '0644'
owner: root:root
content: |
chef_server_url "${chef_server_url}"
- path: /etc/cinc/validation.pem
permissions: '0644'
owner: root:root
content: ${jsonencode(chef_validation_key)}
runcmd:
- "curl -L https://omnitruck.cinc.sh/install.sh | bash -s -- -v ${chef_client_version}"
- "/opt/cinc/bin/cinc-client"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment