similar to: define hostclass with special characters

Displaying 20 results from an estimated 10000 matches similar to: "define hostclass with special characters"

2012 Jul 05
1
Ruby DSL parameterized classes and defaults
I''ve been reading the Docs on this, and its not very clear. I want to have a parameterized class that takes arrays and objects as parameters. I''m using puppet 2.6.16. I define a hostclass like this: hostclass :test, :arguments => { :param1 => "blah" } do end I call from Puppet DSL: class {"test": } I get this as an error: err: Could not
2010 Dec 10
3
Re: [Puppet-dev] Converting to Ruby DSL
On Dec 8, 2010, at 11:09 AM, Ken Barber wrote: > (cross posting here as I originally posted in puppet-users - I figure the question is more of a dev one then for puppet-users) > > Hi everyone, > > I''m experimenting with converting some of my live puppet content to > Ruby DSL and have found a few gaps I wouldn''t mind some advice on. I''m > not sure
2011 Aug 11
6
need urgent help with including Ruby DSL class from puppet manifests
Hi, I have a Ruby class in "nagios" module - it''s located in nagios/ manifests/ssa_nagios_checks.rb and looks like this hostclass :ssa_nagios_checks do ... end In nagios/manifests/init.pp I have class nagios::server { ... include ssa_nagios_checks ... } And I get the following error .... debug: importing ''/etc/puppet/modules/nagios/manifests/
2010 Dec 09
1
Calling class defines in pure ruby DSL
Let''s say I have a define in class ''foo'' called ''foo::bar'': define foo::bar ($var1, $var2) { ... } Then I have a ruby hostclass hostclass :foo do ... } I see I can successfully set the parameters by doing: environment.known_resource_types.definitions[''foo::bar''].set_arguments :var1 => ''val1'', :var2 =>
2012 Jan 23
13
Template Help Please
Hello, I am trying to setup a template with data being passed in as a long string of data which is being returned via extlookup() i.e. $resolvers = "10.10.10.10 11.11.11.11.12.12.12.12" The template should split those up and put a nameserver entry per line in /etc/resolv.conf I have this in the template now:- <%=
2010 Oct 13
4
Puppet and Augeas
Hi. Is there any way to make puppet run a particular module first before another module is run. For example, I''m using the augeas resource type in one of the modules. But libaugeas-ruby1.8 is not installed in the client machine. So when the catalog is run, I get the following error: Could not find a default provider for augeas. So I built another module that will install the
2011 Apr 14
6
copying file with "source" parameter
Hi there, Just started using Puppet since yesterday, so a totally newbie question. I tried to search the answer by myself but none of the suggestions actually worked. This is how my "modules" is laid: |-- modules | |-- mySudo | | |-- files | | | `-- sudoers | | `-- manifests | | `-- init.pp The file(s), that I want to send to the client machines, is in the
2011 Dec 07
4
what is "private method `split' called for nil:NilClass" error??
Dear all, I have this line: <% $c_repo.split('','').each_with_index do |repo, i| %> in one of my template files and on the target node I''m getting this error: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to parse template zmfs/zmfs_prob.erb: private method `split'' called for nil:NilClass Any idea what am I missing?
2011 Feb 08
6
Unrecognised escape sequences
unfortunately, we keep getting this warns into the system log by puppet masters: " [...] Unrecognised escape sequence ''\<CHAR>'' in file <PATH> [...] " but then everything works fine; also, without using escapes, catalogs dont work on agents. What can we do to avoid these kind of errors in master syslogs? Please ,let us know ASAP and tell us if this
2013 Nov 26
9
puppet won't change user's password
Hi! I''m trying to set password for a user. I do the following: user { "username": password => ''*'', } And when I run puppet agent nothing happens. The password remains the same. But if I create a new user which doesn''t exist yet, the password is set without any problems. Is this a normal behaviour of ''user'' type? --
2011 Apr 05
6
Node classifier not loading any defined classes
All, I am sure this is just something I am doing wrong, but I am trying to implement a node classifier (shell script) to have my nodes inherit the proper classes. However, when I run it I am not getting any classes except those that are defined in default. Rather than going into detail showing all of my configurations right off the bat, I have a question: I just stood up a
2012 Jan 17
29
pass values to puppet-lvm
i would like to use the module puppet-lvm and would like to pass values to it. I have it setup properly as a module but I can''t for the lfe of me get it to take any values that I put in my baseconfig.pp in my home folder. like shouldn''t something like this work?? puppet-lvm {''setvolume'': vg => ''myvg'', pv =>
2010 Oct 27
4
Solaris 10 Client "Default Provider for User" Woes Again
Hopefully I''m just missing something simple, but I''m having trouble getting just the absolute bare-bones puppet set up on a new, clean Solaris 10 install. When I try to run: /opt/csw/bin/puppetd --verbose --no-daemonize --server puppet.mydomain.com I just get: err: Could not create resources for managing Puppet''s files and directories in sections [:main, :agent,
2011 Jan 10
7
Could not request certificate: No route to host?
Hi, I''m getting this message "Could not request certificate: No route to host - connect(2)" when I''m trying to connect my pclient to pmaster. I checked my hostnames for both the pclient and the pmaster: [root@pclient etc]# hostname -f pclient.domain [root@pmaster etc]# hostname -f pmaster.domain I tried requesting for certificate: [root@pclient etc]# puppetd --server
2013 Nov 18
4
Puppet Masterless on Windows
Hi all, I have been working on a configuration of a Masterless configuration on Windows. I am able to get individual jobs to run like: puppet apply <path to my puppet .pp file> However, I would like to spin up the Vagrant box off a base VM, and have a puppet manifest file in a location where puppet knows to look and provision based off that file. The obvious place seems to be
2011 Mar 29
8
how puppet client update the files only when the flles from puppet server are new?
Hi, all. I''m not familiar with puppet itself and want to know that this is possible or not.. As I know, puppet client updates all files from server without regard to the files are old or new.. But, I think that puppet client should update the files only when the target files from server are new.. so is there any option to do this? Thanks... -- You received this message because you
2011 Apr 05
4
Catalog changes not picked up immediately
Hi there, when I do changes to my Puppet catalog files it takes some time between these changes are picked up by the clients, even in manual mode. That makes testing with "puppetd --test" quite hard because it can often be up to a couple of minutes for the changes be served out. Can I somehow flush the puppet master cache or from the client force the reload of actual current files
2011 Jan 25
5
puppet ca: Invalid method to apply
What does this message mean: [root@pirates puppet]# rm -rf /var/lib/puppet/ssl/ [root@pirates puppet]# puppet cert --version 2.6.3 [root@pirates puppet]# puppet cert notice: Signed certificate request for ca notice: Rebuilding inventory file Invalid method to apply It seems to have created the ca and other things just fine. Thanks, Mohamed. -- You received this message because you are
2011 May 13
5
ssh_authorized_key loops when options is defined
Hi all, I have no problem with creating ssh keys for users, but as soon as I specify ''options'', puppet keeps repeating and replacing the key with an identical key. I have written the various options in various formats, like one big strings, as an array, with double quotes or single quotes, etc, etc (see examples below), but the issue stays as a string ... @authorizedkey {
2011 Apr 07
3
sourceselect & multiple sources not working
Hi, I am trying to configure a file resource with multiple sources, and browsing list archives and forums seems to indicate that sourceselect parameter with an array for the source param. But the final file gets created using the first matching parameter in the array. file { ''/etc/sysconfig/myconfig'': sourceselect => all, source => [