-
Notifications
You must be signed in to change notification settings - Fork 193
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
(MOD-7655) SLES support for install_agent tasks #318
Conversation
This commit adds logic to the install_shell.sh install task implementation to support installing puppet-agent on SLES platforms. Currently the supported platform versions are 11 and 12. Nodeset templates have been added for manual testing.
@@ -22,7 +22,7 @@ def inventory | |||
|
|||
it 'works with version and install tasks' do | |||
# test the agent isn't already installed and that the version task works | |||
results = run_task('puppet_agent::version', 'default', config: config, inventory: inventory) |
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.
Changing from default
to target
allows multiple targets defined in hosts.yaml to be tested.
For example:
- Generate multiple hosts
beaker-hostgenerator sles11-64target.a-sles12-64target.a > hosts.yaml
hosts.yaml
---
HOSTS:
sles11-64-1:
pe_dir:
pe_ver:
pe_upgrade_dir:
pe_upgrade_ver:
hypervisor: vmpooler
platform: sles-11-x86_64
packaging_platform: sles-11-x86_64
template: sles-11-x86_64
roles:
- agent
- target
sles12-64-1:
pe_dir:
pe_ver:
pe_upgrade_dir:
pe_upgrade_ver:
hypervisor: vmpooler
platform: sles-12-x86_64
packaging_platform: sles-12-x86_64
template: sles-12-x86_64
roles:
- agent
- target
CONFIG:
nfs_server: none
consoleport: 443
pooling_api: http://vmpooler.delivery.puppetlabs.net/
- Run task acceptance tests against targets defined in hosts.yaml with
BEAKER_setfile
GEM_BOLT=true BEAKER_keyfile=~/.ssh/id_rsa-acceptance BEAKER_debug=true BEAKER_setfile=hosts.yaml bundle exec rake task_acceptance
When default
is targeted instead of target
the following error occurs:
Failure/Error: expect(res).to include('status' => 'success')
expected {"node" => "default", "result" => {"_error" => {"details" => {}, "issue_code" => "CONNECT_ERROR", "kind" => "pupp...msg" => "Failed to connect to default: getaddrinfo: Name or service not known"}}, "status" => "failure"} to include {"status" => "success"}
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.
Hadn't noticed this got rewritten to a single test case.
CLA signed by all contributors. |
@@ -22,7 +22,7 @@ def inventory | |||
|
|||
it 'works with version and install tasks' do | |||
# test the agent isn't already installed and that the version task works | |||
results = run_task('puppet_agent::version', 'default', config: config, inventory: inventory) |
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.
Hadn't noticed this got rewritten to a single test case.
This commit adds logic to the install_shell.sh install task implementation to support installing puppet-agent on SLES platforms. Currently the supported platform versions are 11 and 12. Nodeset templates have been added for manual testing.