Skip to content

Instantly share code, notes, and snippets.

@kojiromike
Created August 29, 2016 02:10
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 kojiromike/3f4f1ff58a73e093e1f8ba07b7a8cf88 to your computer and use it in GitHub Desktop.
Save kojiromike/3f4f1ff58a73e093e1f8ba07b7a8cf88 to your computer and use it in GitHub Desktop.
Packer with salt provisioner that does not validate because of missing local_state_tree
{
"variables": {
"ami_name": "bug.test.case.ami.{{timestamp}}",
"minion_id": "anything"
},
"builders": [
{
"ami_description": "Test Case for Packer Salt Provisioner Bug",
"ami_name": "{{user `ami_name` | clean_ami_name}}",
"instance_type": "t2.micro",
"region": "us-east-1",
"source_ami": "ami-8e0b9499",
"ssh_username": "ubuntu",
"type": "amazon-ebs"
}
],
"provisioners": [
{
"bootstrap_args": "-G -X -i {{user `minion_id`}}",
"minion_config": "minion.conf",
"type": "salt-masterless"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment