oscar-stack / oscar

Easy mode installation of Puppet Enterprise on Vagrant
Other
86 stars 37 forks source link

Cannot fetch installer when following instructions in the README #19

Open ghost opened 11 years ago

ghost commented 11 years ago

When trying to follow the instructions in the README, I'm getting the following error when I run "vagrant up":

[:~/tmp] $ vagrant plugin install oscar
Installing the 'oscar' plugin. This can take a few minutes...
Installed the plugin 'oscar (0.3.1)'!
[:~/tmp] $ mkdir oscar
[:~/tmp] $ cd oscar
[:~/tmp/oscar] $ vagrant oscar init
A stub Vagrantfile has been placed in this directory and default configurations
have been placed into the `config` directory. You can now run `vagrant up` to start
your Oscar built environment, courtesy of Vagrant.
[:~/tmp/oscar] $ vagrant oscar init-vms --master master=centos-64-x64-vbox4210-nocm
Your environment has been initialized with the following configuration:
masters:
  - ["master", "centos-64-x64-vbox4210-nocm"]
agents:

pe_version: 3.1.0
[:~/tmp/oscar] $ vagrant up
Bringing machine 'master' up with 'virtualbox' provider...
[master] Importing base box 'centos-64-x64-vbox4210-nocm'...
[master] Matching MAC address for NAT networking...
[master] Setting the name of the VM...
[master] Clearing any previously set forwarded ports...
[master] Fixed port collision for 22 => 2222. Now on port 2202.
[master] Creating shared folders metadata...
[master] Clearing any previously set network interfaces...
[master] Assigning "10.20.1.2" to 'aa89107d-8f2b-4feb-bfe0-13dfd1f9b315'
[master] Preparing network interfaces based on configuration...
[master] Forwarding ports...
[master] -- 22 => 2202 (adapter 1)
[master] Running 'pre-boot' VM customizations...
[master] Booting VM...
[master] Waiting for machine to boot. This may take a few minutes...
[master] Machine booted and ready!
[master] Configuring and enabling network interfaces...
[master] Mounting shared folders...
[master] -- /vagrant
[master] Running provisioner: hosts...
[master] Running provisioner: pe_bootstrap...
Cannot fetch installer puppet-enterprise-3.1.0-el-6-x86_64.tar.gz; no download source available.

Installers available for use:
The Puppet Enterprise installer puppet-enterprise-3.1.0-el-6-x86_64.tar.gz
is not available. Please set the `download_root` config option to a valid
mirror, or add the installer yourself by using the `vagrant pe-build copy`
command. Downloads for Puppet Enterprise are available for download at
https://puppetlabs.com/puppet/puppet-enterprise/
ghost commented 11 years ago

Also, when I run "vagrant pe-build copy" like it suggests, I get this error:

[:~/tmp/oscar] $ vagrant pe-build copy
/Applications/Vagrant/embedded/lib/ruby/1.9.1/uri/generic.rb:1202:in `rescue in merge': both URI are relative (URI::BadURIError)
    from /Applications/Vagrant/embedded/lib/ruby/1.9.1/uri/generic.rb:1199:in `merge'
    from /Users/mhuffnagle/.vagrant.d/gems/gems/vagrant-pe_build-0.8.0/lib/pe_build/archive.rb:62:in `fetch'
    from /Users/mhuffnagle/.vagrant.d/gems/gems/vagrant-pe_build-0.8.0/lib/pe_build/command/copy.rb:20:in `execute'
    from /Users/mhuffnagle/.vagrant.d/gems/gems/vagrant-pe_build-0.8.0/lib/pe_build/command/base.rb:32:in `execute_subcommand'
    from /Users/mhuffnagle/.vagrant.d/gems/gems/vagrant-pe_build-0.8.0/lib/pe_build/command/base.rb:18:in `execute'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/cli.rb:38:in `execute'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/environment.rb:478:in `cli'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.3.3/bin/vagrant:96:in `<top (required)>'
    from /Applications/Vagrant/bin/../embedded/gems/bin/vagrant:23:in `load'
    from /Applications/Vagrant/bin/../embedded/gems/bin/vagrant:23:in `<main>'
mlehner616 commented 10 years ago

Just experienced the same chunk of minor disappointment. The hardest part is that the README doesn't have any reference on how to set the download_root or how to add it via the vagrant pe-build copy command. So I'm now left confused and sleep deprived,

mlehner616 commented 10 years ago

Ah! found a clue

https://github.com/adrienthebo/vagrant-pe_build

razorsedge commented 10 years ago

See issue #16.