-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
Fix README for Puppet 4 #85
Conversation
This update advises the user of how to install the AIO agent for Puppet 4. Without this advice the user cannot test Puppet 4 code.
Refer to this link for build results (access rights to CI server needed): |
on host, install_puppet | ||
# Select the correct method below. | ||
on host, install_puppet # this is for Puppet 3 | ||
install_puppet_agent_on(host, :version => '1.5.2') # this is for Puppet 4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
install_puppet
is itself a shortcut to installing puppet on all hosts available. This means that for running it on all hosts, you're installing puppet hosts*hosts number of times.
This should actually be just install_puppet
outside of the hosts loop, or if wanted inside the loop, it should be done with this line:
install_puppet_on(host, options)
Note that the options are the global options (accessible from the shim as the options
method used here).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ps - Doesn't the code say that install_puppet is deprecated in favor of install_puppet_on()
?
https://github.com/puppetlabs/beaker/blob/0e13b888970aae8fb82343078ce14eef69bb236c/lib/beaker/dsl/install_utils/foss_utils.rb#L204
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, it is. There's one known issue with using install_puppet_on
, however, which can be gotten around by providing the global options hash as the opts
parameter to that method.
will close this due to inactivity if there's no movement in a week. |
I'm having a maybe related problem where a test seems to be failing on the exact code that's given in the README:
I'm guessing in this change, With beaker 2.51.0, the example given in the docs doesn't seem to work for me, so I think this should be fixed, rather than closed. Either that, or bit that handles using the deprecated
|
@wyardley please submit your issue as a separate BKR JIRA ticket, and we'll take a look at that. Since there has been no movement on this PR, I'll close it now. |
@kevpl: Thanks, created https://tickets.puppetlabs.com/browse/BKR-968 |
This update advises the user of how to install the AIO agent for Puppet
4. Without this advice the user cannot test Puppet 4 code.