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

How to correctly implement SSH into roles.yaml? #38

Open
Gabelbombe opened this issue Feb 9, 2015 · 2 comments
Open

How to correctly implement SSH into roles.yaml? #38

Gabelbombe opened this issue Feb 9, 2015 · 2 comments

Comments

@Gabelbombe
Copy link

I added this to my roles.yaml, but it doesn't seem to be working. What is the correct way to do this?


---
roles:
  pe-puppet-master:
    private_networks:
      - {ip: '0.0.0.0', auto_network: true}
    provider:
      type: virtualbox
      customize:
        - [modifyvm, !ruby/sym id, '--memory', 4096]
    provisioners:
      - {type: shell, inline: 'cd /etc/yum.repos.d; wget -nc http://public-yum.oracle.com/public-yum-ol6.repo'}
      - {type: hosts}
      - {type: pe_bootstrap, role: !ruby/sym master}
      - {type: shell, path: 'scripts/bootstrap.sh'}
      - {type: puppet, manifest_file: 'vagrant.pp'}
    ssh:
      private_key_path: "~/.ssh/mykey_rsa"
      forward_agent: true
@TJM
Copy link

TJM commented Mar 2, 2016

You use vagrant ssh master (or whatever VM you want to SSH to)

@jeeslo
Copy link

jeeslo commented Dec 31, 2016

I got it working by using the same syntax as above, in vms.yaml instead of roles.yaml.

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

No branches or pull requests

3 participants