On 17/03/14 12:59, nhadie ramos wrote:
HI All,
Im trying vagrant and puppet, i would like to be able to launch an VM
on virtualbox then call puppet for installing packages and configuration.
I would be using this for all developers and loaded on their local
machine's Virtualbox.
so on vagrant i launch a machine and set hostname to dev.mybox.com
then configure it to connect to my puppetmaster e.g. puppet agent
--server puppetmaster.mybox.com --test --verbose
on my puppet master, i added *.mybox.com on autosign.conf.
initial vagrant up works since o cert yet on master for dev.mybox.com.
but after i destroy vm and launch again
i see the error:
err: Could not request certificate: The certificate retrieved from the
master does not match the agent's private key.
Certificate fingerprint: 2B:E9:77:64:B7:B4:98:DD:75:8D:0F:B5:53:ED:3B:46
To fix this, remove the certificate from both the master and the agent
and then start a puppet run, which will automatically regenerate a
certficate.
On the master:
puppet cert clean dev.mybox.com
On the agent:
rm -f /var/lib/puppet/ssl/certs/dev.mybox.com.pem
puppet agent -t
is there a way to bypass this or set a fix cert so that i can destroy
and launch instance using vagrant without this issue?
any help would be appreciated. thank you.
Regards,
Nhadie
Here is my code in the Vagrantfile, where i reuse the certs.
I did generate the certs.
vm_config.vm.provision :puppet_server do |server|
server.puppet_node = 'rspecfc20.koewacht.net'
server.puppet_server = 'puppet.koewacht.net'
server.client_cert_path =
'certs/cert_rspecfc20.koewacht.net.pem'
server.client_private_key_path =
'certs/priv_rspecfc20.koewacht.net.pem'
server.options =
'--localcacert=/vagrant/certs/ca.pem'
end
Grts
Jo
--
You received this message because you are subscribed to the Google
Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/73dc2a83-ed2a-464d-b7e8-d20f3c0f59a7%40googlegroups.com
<https://groups.google.com/d/msgid/puppet-users/73dc2a83-ed2a-464d-b7e8-d20f3c0f59a7%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
Johan De Wit
Open Source Consultant
Red Hat Certified Engineer (805008667232363)
Puppet Certified Professional 2013 (PCP0000006)
_________________________________________________________
Open-Future Phone +32 (0)2/255 70 70
Zavelstraat 72 Fax +32 (0)2/255 70 71
3071 KORTENBERG Mobile +32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_________________________________________________________
Next Events:
Puppet Intruction Course |
http://www.open-future.be/puppet-introduction-course-14th-april
Puppet Advanced Training |
http://www.open-future.be/puppet-advanced-training-15-till-17th-april
Linux Training | https://www.open-future.be/linux-training-5-till-9th-may
Puppet Intruction Course |
https://www.open-future.be/puppet-introduction-course-12th-may
Subscribe to our newsletter | http://eepurl.com/BUG8H
--
You received this message because you are subscribed to the Google Groups "Puppet
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/53270E04.1020305%40open-future.be.
For more options, visit https://groups.google.com/d/optout.