Skip to content

Instantly share code, notes, and snippets.

@scarcry
Created April 28, 2015 11:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scarcry/391afc5cc3f14ba42085 to your computer and use it in GitHub Desktop.
Save scarcry/391afc5cc3f14ba42085 to your computer and use it in GitHub Desktop.
SmartOS puppet json manifest
{
"brand": "joyent",
"zfs_root_compression": "lz4",
"image_uuid": "24648664-e50c-11e4-be23-0349d0a5f3cf",
"alias": "puppet1",
"hostname": "puppet1",
"max_physical_memory": 1024,
"dns_domain": "fritz.box",
"resolvers": ["192.168.3.209", "194.109.6.66", "194.109.9.99"],
"maintain_resolvers": "true",
"nics": [
{
"nic_tag": "admin",
"mac": "e2:4e:19:35:a0:3a",
"ip": "192.168.3.214",
"netmask": "255.255.255.0",
"gateway": "192.168.3.1",
"allow_ip_spoofing": "true"
}
],
"filesystems": [
{
"type": "lofs",
"source": "/var/setup-v6",
"target": "/opt/setup-v6"
},
{
"type": "lofs",
"source": "/zones/bootstrap",
"target": "/var/tmp/bootstrap"
},
{
"type": "lofs",
"source": "/zones/puppet-conf",
"target": "/etc/puppet"
},
{
"type": "lofs",
"source": "/zones/puppet-data",
"target": "/var/lib/puppet"
},
{
"type": "lofs",
"source": "/zones/puppet-hiera",
"target": "/var/lib/hiera"
}
],
"customer_metadata": {
"user-script" : "export PUPPETMASTER=puppet1.fritz.box ; export PATH=$PATH:/opt/local/bin ; bash /var/tmp/bootstrap/puppet_master.sh > /tmp/bootstrap.log 2>&1 &"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment