My packer code contains packer chef solo provisioner
{
  "type": "chef-solo",
  "cookbook_paths": ["chef/cookbooks/vendor"],
  "run_list": ["recipe[cicada-jenkins-cookbook::default]","recipe[cicada-jenkins-cookbook::support_tools]","recipe[cicada-jenkins-cookbook::cft_seed_dsl]","recipe[cicada-jenkins-cookbook::terraform_seed_dsl]"]
}
In here i need to overide attributes how can i pass them in packer
{
    "type": "chef-solo",
    "cookbook_paths": ["chef/cookbooks/vendor"],
    "roles_path": "chef/roles",
    "json": {
          "jenkins": {
            "master": {
              "port": 8080
            },
            "executor": {
              "timeout": 300
            }
          },
          "jenkins-cookbook": {
            "admin_user": "uname",
            "admin_pass": "pwd"
          }
    },
    "run_list":["role[jenkins]"]
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With