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

centos vagrant boxes use rsync by default which breaks oscar #61

Open
jessereynolds opened this issue Nov 29, 2019 · 1 comment
Open

Comments

@jessereynolds
Copy link

jessereynolds commented Nov 29, 2019

The official centos vagrant boxes do not include the Virtualbox guest additions, so rsync is the default sync transport. A vagrant up will then just do an initial rsync for sync'd folders. There are a few issues with this with oscar:

1/ after downloading PE installer:

==> master: Running provisioner: pe_bootstrap...
==> master: bash: line 4: /vagrant/.pe_build/puppet-enterprise-2019.2.1-el-7-x86_64/puppet-enterprise-installer: No such file or directory

2/ after installing and trying to puppet apply master.pp:

==> master: Error: Could not run: Could not find file /vagrant/.pe_build/post-install/master.pp

The workaround at each step is to vagrant reload master.

I assume there's a way we can also get /vagrant to be mounted using vagrant-sshfs or nfs. Is there a recommended method of configuring this?

@jessereynolds jessereynolds changed the title vagrant on mac now uses rsync by default which breaks oscar centos vagrant boxes use rsync by default which breaks oscar Nov 29, 2019
@jessereynolds
Copy link
Author

Specifying /vagrant in the synced_folders array with type sshfs within the role definition works, eg:

---
roles:
  pe-puppet-master:
    private_networks:
      - {ip: '0.0.0.0', auto_network: true}
    providers:
      - type: virtualbox
        linked_clone: true
        customize:
          - [modifyvm, !ruby/sym id, '--memory', 4048]
    provisioners:
      - {type: hosts, sync_hosts: true}
      - {type: pe_bootstrap, role: !ruby/sym master}
    synced_folders:
      - host_path: '.'
        guest_path: '/vagrant'
        type: sshfs
        disabled: false

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

1 participant