I am attempting to provision an Ubuntu 12.04.5 VBox basebox with Vagrant and puppet
I'm seeing the same problem as above
Error: Server configurations require Augeas >= 1.0.0
I can't figure out how to load the correct version of Augeas
I tried to add the ppa and update the version, but its not working for me
any help would be greatly appreciated.
Thanks in advance,
Tim
./puppet/manifest/init.pp
Exec { path => [ "/bin/", "/sbin/" , "/usr/bin/", "/usr/sbin/" ] }
include java7
class { 'apt': }
apt::ppa { 'ppa:raphink/augeas':
}->
class { '::augeas': version => '1.3.0'
}->
class { 'tomcat':
}->
tomcat::instance { 'tomcat7':
catalina_base => '/opt/apache-tomcat/tomcat7',
source_url => '
http://archive.apache.org/dist/tomcat-7/v7.0.65/bin/apache-tomcat-7.0.65.tar.gz',
}->
tomcat::config::server { 'tomcat7':
catalina_base => '/opt/apache-tomcat/tomcat7',
port => '8080',
}->
tomcat::service { 'default':
catalina_base => '/opt/apache-tomcat/tomcat7',
service_name => 'tomcat7',
}
Output:
==> default: Running provisioner: shell...
default: Running: /tmp/vagrant-shell20151118-12525-wn5qw.sh
==> default: stdin: is not a tty
==> default: Installing librarian-puppet..
==> default: librarian-puppet installed!
==> default: Executing PuppetFile..
==> default: Running provisioner: puppet...
==> default: Running Puppet with init.pp...
==> default: stdin: is not a tty
==> default: Warning: Setting templatedir is deprecated. See
http://links.puppetlabs.com/env-settings-deprecations==> default: (at /usr/lib/ruby/vendor_ruby/puppet/settings.rb:1139:in `issue_deprecation_warning')
==> default: Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults
==> default: Error: Server configurations require Augeas >= 1.0.0 at /tmp/vagrant-puppet/modules-330218a18f543a98f97fa29ff15cb27b/tomcat/manifests/config/server.pp:29 on node vagrant
==> default: Error: Server configurations require Augeas >= 1.0.0 at /tmp/vagrant-puppet/modules-330218a18f543a98f97fa29ff15cb27b/tomcat/manifests/config/server.pp:29 on node vagrant
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.
more details: ...I started with this, it worked on my base box
and arpitaggarwal/vagrant-puppet
I wanted to use puppetlabs-tomcat, so I made changes to the init.pp as shown above and to
files listed below:
Vagrantfile
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "timr/my-2045-puppet"
config.vm.network :private_network, ip: "90.0.9.99"
config.vm.provision "shell", path: "installation-script.sh"
config.vm.provision :puppet do |puppet|
puppet.manifests_path = 'puppet/manifests'
puppet.module_path = 'puppet/modules'
puppet.manifest_file ="init.pp"
end
end
installation-script.sh
set -e
# Directory in which PuppetFile is placed to be scanned by librarian-puppet.
PUPPET_DIR=/vagrant/puppet
apt-get -qq update
RUBY_VERSION="$(ruby -e 'print RUBY_VERSION')"
RUBY_INSTALL='1.9.3'
if [ $RUBY_VERSION != $RUBY_INSTALL ]; then
echo "Installing ruby.."
apt-get -q -y install ruby $RUBY_INSTALL
update-alternatives --set ruby /usr/bin/ruby1.9.1
fi
echo "Installing librarian-puppet.."
if [ "$(gem search -i librarian-puppet)" = "false" ]; then
gem install librarian-puppet -v 1.0.0
fi
echo "librarian-puppet installed!"
echo "Executing PuppetFile.."
cd $PUPPET_DIR && librarian-puppet install --path modules
/puppet/Puppetfile# Puppetfile Configuration for librarian-puppet.
forge "
http://forge.puppetlabs.com"
mod "puppetlabs/apt"
mod "camptocamp/augeas"
mod "puppetlabs/stdlib"
mod "puppetlabs/tomcat"