Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

machine_options[:convergence_options] ignored on machine resource #534

Open
BGmot opened this issue Jun 7, 2017 · 5 comments
Open

machine_options[:convergence_options] ignored on machine resource #534

BGmot opened this issue Jun 7, 2017 · 5 comments

Comments

@BGmot
Copy link

BGmot commented Jun 7, 2017

require 'chef/provisioning/aws_driver'
with_driver 'aws'
with_machine_options(
  {
    bootstrap_options: {
      associate_public_ip_address: false,
      key_name: '<snip>',
      security_group_ids: ["<snip>","<snip>"],
      subnet_id: '<snip>'
    },
    convergence_options: {
      chef_version: '12.19.36',
      chef_config: "log_level :debug\nlog_location '/var/log/chef-client.log'\n"
    }
  }
)
machine 'ey-test' do
  action  :converge
  run_list ['recipe[<snip>]']
end

Results in the latest chef-client being run at the target VM (not specified 12.19.36) and default client.rb file:

chef_server_url "http://localhost:7799"
node_name "ey-test"
client_key "/etc/chef/client.pem"
ssl_verify_mode :verify_none

My versions

$ chef --version
Chef Development Kit Version: 1.3.43
chef-client version: 12.19.36
delivery version: master (dd319aa632c2f550c92a2172b9d1226478fea997)
berks version: 5.6.4
kitchen version: 1.16.0
$ gem list provisioning

*** LOCAL GEMS ***

chef-provisioning (2.2.1)
chef-provisioning-aws (2.2.0)
@stanislav-zaprudskiy
Copy link

@BGmot
Copy link
Author

BGmot commented Jun 7, 2017

@stanislav-zaprudskiy it's good that you solved your problem but sorry your chef-dk (and chef-provisioning) is way too outdated. Anyway I tried your solution, it did not help. In my case I don't see problems with machine_options, it's just convergence_options that gets ignored.

@stanislav-zaprudskiy
Copy link

hey @BGmot,
I see the fix turned out to be applicable - 👍.

BTW, we run

chef-provisioning (2.3.2)
chef-provisioning-aws (2.2.0)

@BGmot
Copy link
Author

BGmot commented Jun 8, 2017

Hi @stanislav-zaprudskiy ,
sorry I got your versions from that issue 580. Thanks for confirmation that the fix works for you.

@jgoulah
Copy link
Contributor

jgoulah commented Jul 24, 2017

believe this is fixed in chef-provisioning-aws 2.2.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants