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

(CISC-973) Handle vars in gcp provisioner #152

Merged
merged 3 commits into from
Jan 6, 2021

Conversation

HelenCampbell
Copy link
Contributor

@HelenCampbell HelenCampbell commented Jan 4, 2021

This work is to allow the addiiton of 'vars' into the inventory file for gcp provisioning, as required by comply. Tested against https://github.com/puppetlabs/comply/runs/1656251077?check_suite_focus=true with the following result:

Run cat ./inventory.yaml

---
version: 2
groups:
- name: docker_nodes
  targets: []
- name: ssh_nodes
  targets:
  - uri: 104.155.47.124
    config:
      transport: ssh
      ssh:
        user: litmuskww5w1fm
        password: ******************
        host-key-check: false
        port: 22
        run-as: root
    facts:
      provisioner: provision::provision_service
      platform: centos-7
      uuid: 197d8ae6-027f-4b5f-b4c9-1509dffd0e5a
    vars:
      role: pe
  - uri: 34.76.79.34
    config:
      transport: ssh
      ssh:
        user: litmusiyvs9lpg
        password: ****************
        host-key-check: false
        port: 22
        run-as: root
    facts:
      provisioner: provision::provision_service
      platform: centos-7
      uuid: 6a4f6c84-d33a-4e71-98b2-fe945776e24b
    vars:
      role: comply

tasks/provision_service.rb Outdated Show resolved Hide resolved
Co-authored-by: David Schmitt <david.schmitt@puppet.com>
@HelenCampbell HelenCampbell force-pushed the CISC-973 branch 6 times, most recently from fed868a to 392e74c Compare January 6, 2021 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants