Skip to content

Instantly share code, notes, and snippets.

@leetschau
Created February 11, 2014 03:15
Show Gist options
  • Save leetschau/8928708 to your computer and use it in GitHub Desktop.
Save leetschau/8928708 to your computer and use it in GitHub Desktop.
install redmine with puppet
Today I try to install Redmine server with Puppet on a vagrant managed virtual machine. I use a published module on puppet forge:
http://forge.puppetlabs.com/johanek/redmine
And the following is my operations:
1. Initialize VM:
chad@typcserver ~/docs/vagrant-prj $ vagrant --version
Vagrant 1.4.3
chad@typcserver ~/docs/vagrant-prj $ vagrant init
chad@typcserver ~/docs/vagrant-prj $ cat Vagrantfile
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
end
2. Startup VM:
chad@typcserver ~/docs/vagrant-prj $ vagrant up
chad@typcserver ~/docs/vagrant-prj $ vagrant ssh
3. The preinstalled puppet version is 2.7:
vagrant@precise64:~$ puppet --version
2.7.19
4. Install redmine module:
vagrant@precise64:~$ sudo mkdir -p /etc/puppet/modules
vagrant@precise64:~$ sudo puppet module install johanek/redmine
vagrant@precise64:~$ sudo apt-get update
vagrant@precise64:~$ sudo puppet apply --modulepath=/etc/puppet/modules -e "include stdlib"
vagrant@precise64:~$ sudo puppet apply --modulepath=/etc/puppet/modules -e "include mysql::server"
warning: Could not retrieve fact fqdn
Then it's stuck. I find there are network traffic with ifstat utility, which probably means puppet is installing mysql. But how can I get the current state of puppet? I can't stop it even with Ctrl-C.
One more question: what is the recommended way to install a module and all its dependencies after download its source file with "puppet module install ..."?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment