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

(MOD-7655) SLES support for install_agent tasks #318

Merged
merged 1 commit into from
Aug 21, 2018

Conversation

donoghuc
Copy link
Contributor

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.

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)
Copy link
Contributor Author

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:

  1. 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/
  1. 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"}

Copy link
Contributor

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.

@puppetcla
Copy link

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)
Copy link
Contributor

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.

@MikaelSmith MikaelSmith merged commit 319ce44 into puppetlabs:master Aug 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants