[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Error parsing "ntpd.pp"



I solved my last problem as well, in case someone ever get stuck like me:

- Install the required compilers, RVM and latest ruby version, then try to install the gem again

yum -y install gcc ruby-devel rubygems gcc-c++ zlib-devel
> \curl -L https://get.rvm.io | bash -s stable --ruby
> source /usr/local/rvm/scripts/rvm
> gem install sass-rails

--ja

On 13 Jul 2013, at 15:04, Jose G N Alban <jgalbandebritto1 sheffield ac uk> wrote:

Ok I got through it:

I am following the tutorial at http://openshift.github.io/origin/file.install_origin_using_puppet.html#Installing_Puppet , but it seems not to be very precise. I had to install the ntp puppet module:

cd /usr/share/puppet/modules/
puppet-module install puppetlabs-ntp
Installed "puppetlabs-ntp-1.0.0" into directory: ntp

… then I still got a problem with the parameters:

Invalid parameter ensure at /usr/share/puppet/modules/openshift_origin/manifests/ntpd.pp:44 on node ...
notice: Scope(Class[Ntp]): autoupdate parameter has been deprecated and replaced with ensure_package.  Set this to latest for the same behavior as autoupdate => true.

… and I ended up modifying the file ntpd.pp lines 40-44 to:
===
class { 'ntp':
   service_ensure     => running,
   servers    => ['time.apple.com iburst', 'pool.ntp.org iburst', 'clock.redhat.com iburst'],
   package_ensure => 'latest',
 }
===

After getting it sorted out, I received another error (while trying to puppet apply):

Could not find dependency Package[rubygem-sass-rails] for Exec[Console gem dependencies] at /usr/share/puppet/modules/openshift_origin/manifests/console.pp:283

I am still trying to fix it up.
I tried:
gem install sass-rails

but it wasn't straightforward:

Building native extensions.  This could take a while...
ERROR:  Error installing sass-rails:
ERROR: Failed to build gem native extension.

/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/ruby.h


Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/atomic-1.1.10 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/atomic-1.1.10/ext/gem_make.out

… I checked with:
gem query --local
*** LOCAL GEMS ***

i18n (0.6.4)
json (1.5.5)
minitest (4.7.5)
multi_json (1.7.7)
puppet-module (0.3.4)
sass (3.2.9)
tzinfo (0.3.37)

… however, while trying to apply again
puppet apply --verbose configure_origin.pp
still gives me the same error
Could not find dependency Package[rubygem-sass-rails] for Exec[Console gem dependencies] at /usr/share/puppet/modules/openshift_origin/manifests/console.pp:283

I'm still trying to figure out what's going on

--ja

On 13 Jul 2013, at 14:01, Jose G N Alban <jgalbandebritto1 sheffield ac uk> wrote:

Hi all,
I use Scientific Linux EL 6, and installed puppet version 2.7.22.
After installing openshift module using puppet-module, and trying to run the manifest suggested by this link http://openshift.github.io/origin/file.install_origin_using_puppet.html#Installing_Puppet , I got the following result:

puppet apply --verbose configure_origin.pp

Puppet::Parser::AST::Resource failed with error ArgumentError: Could not find declared class ntp at /usr/share/puppet/modules/openshift_origin/manifests/ntpd.pp:44 on node cloud.bourbon.dcs.shef.ac.uk

file ntpd.pp lines 40 to 44:
===
class { 'ntp':
  ensure     => running,
  servers    => ['time.apple.com iburst', 'pool.ntp.org iburst', 'clock.redhat.com iburst'],
  autoupdate => true,
}
===

Could someone please help me on how to fix it?
--ja



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]