puppet - Augeas support on my Vagrant machine? -


i'm trying getting support augeas on vagrant machine.

i tried install package these directives:

package { "augeas-tools":   ensure => installed } package { "libaugeas-dev":  ensure => installed } package { "libaugeas-ruby": ensure => installed } 

when try use augeas on manifests, after vm boot receive error:

err: not find suitable provider augeas 

i'm using precise32 official box vagrant 1.0.3.

vagrant 1.0.3 has ruby 1.8.7 , puppet 2.7.14

$ ruby -v $ ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-linux] $ puppet $ puppet v2.7.14 

this little manifest php class, included after apache class, mysql , other classes tested separately. things works correctly excepting augeas command.

class php {      exec { "apt-update":         command     => "/usr/bin/apt-get update",         refreshonly => true;     }      package { "augeas-tools":   ensure => installed }     package { "libaugeas-dev":  ensure => installed }     package { "libaugeas-ruby": ensure => installed }      package { "php5":               ensure => installed }     package { "php5-cli":           ensure => installed }     package { "php5-xdebug":        ensure => installed }     package { "php5-curl":          ensure => installed }     package { "php5-intl":          ensure => installed }     package { "php5-imap":          ensure => installed }     package { "php5-mcrypt":        ensure => installed }     package { "php5-imagick":       ensure => installed }     package { "php5-sqlite":        ensure => installed }     package { "php5-gd":            ensure => installed }     package { "php-apc":            ensure => installed }      package {          "libapache2-mod-php5" :              ensure => installed,             require => package["php5"]     }      augeas { "php-cli":         require =>  [                         package["php5"],                         package["augeas-tools"],                         package["libaugeas-dev"],                         package["libaugeas-ruby"],                     ],         context => "/etc/php5/cli/php.ini",         changes => [             "set date.timezone europe/rome",             "set short_open_tag off",         ];     }      augeas { "php-apache":         require =>  [                         package["php5"],                         package["augeas-tools"],                         package["libaugeas-dev"],                         package["libaugeas-ruby"],                     ],         context => "/etc/php5/apache2/php.ini",         changes => [             "set date.timezone europe/rome",             "set short_open_tag off",         ];     }  } 

after installation of packages, logging in vagrant machine "vagrant ssh", launch:

vagrant@precise32:~$ ruby -raugeas -e "puts augeas.open" #<augeas:0xb77a3598> 

thanks in advance!

i added following vagrantfile , augeas started working.

before declaring puppet provisioner add following line, if on ubuntu:

config.vm.provision :shell, :inline => "sudo apt-get update && sudo apt-get install puppet -y"

this update apt packages , update puppet client latest version has fix.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -