Re: [Puppet Users] Error with service: "invalid byte sequence in US-ASCII"

2013-09-02 Thread William Van Hevelingen
Actually the umbrella bug is now.

http://projects.puppetlabs.com/issues/20522


On Mon, Sep 2, 2013 at 11:47 PM, William Van Hevelingen wrote:

> Found the bug that Jeff created
>
> http://projects.puppetlabs.com/issues/11303
>
>
> On Mon, Sep 2, 2013 at 11:42 PM, William Van Hevelingen 
> wrote:
>
>> I get the same error when running puppet-lint puppet 3.1.x regression?
>>
>> rake aborted!
>> invalid byte sequence in US-ASCII
>> /shadow/home/blkperl/.rvm/gems/ruby-1.9.3-p194/gems/puppet-lint-0.3.2/lib/puppet-lint/lexer.rb:120:in
>> `[]'
>> /shadow/home/blkperl/.rvm/gems/ruby-1.9.3-p194/gems/puppet-lint-0.3.2/lib/puppet-lint/lexer.rb:120:in
>> `block in tokenise'
>> /shadow/home/blkperl/.rvm/gems/ruby-1.9.3-p194/gems/puppet-lint-0.3.2/lib/puppet-lint/lexer.rb:119:in
>> `each'
>> /shadow/home/blkperl/.rvm/gems/ruby-1.9.3-p194/gems/puppet-lint-0.3.2/lib/puppet-lint/lexer.rb:119:in
>> `tokenise'
>> /shadow/home/blkperl/.rvm/gems/ruby-1.9.3-p194/gems/puppet-lint-0.3.2/lib/puppet-lint/plugin.rb:40:in
>> `load_data'
>> /shadow/home/blkperl/.rvm/gems/ruby-1.9.3-p194/gems/puppet-lint-0.3.2/lib/puppet-lint/plugin.rb:54:in
>> `run'
>> /shadow/home/blkperl/.rvm/gems/ruby-1.9.3-p194/gems/puppet-lint-0.3.2/lib/puppet-lint.rb:155:in
>> `run'
>> /shadow/home/blkperl/.rvm/gems/ruby-1.9.3-p194/gems/puppet-lint-0.3.2/lib/puppet-lint/tasks/puppet-lint.rb:23:in
>> `block (3 levels) in initialize'
>> /shadow/home/blkperl/.rvm/gems/ruby-1.9.3-p194/gems/puppet-lint-0.3.2/lib/puppet-lint/tasks/puppet-lint.rb:21:in
>> `each'
>> /shadow/home/blkperl/.rvm/gems/ruby-1.9.3-p194/gems/puppet-lint-0.3.2/lib/puppet-lint/tasks/puppet-lint.rb:21:in
>> `block (2 levels) in initialize'
>> /shadow/home/blkperl/.rvm/gems/ruby-1.9.3-p194/gems/puppet-lint-0.3.2/lib/puppet-lint/tasks/puppet-lint.rb:13:in
>> `block in initialize'
>> Tasks: TOP => lint
>>
>>
>>
>> On Tue, May 21, 2013 at 2:43 AM, David Schmitt  wrote:
>>
>>> On 19.05.2013 14:18, Mateusz Fiołka wrote:
>>>
 I'm not sure if it is related to the services. It rather looks like
 puppet related to me.
 I'm having a similar problem on a newly created vps. When I do puppet
 apply first time I get the message:

 Error: Could not set 'present' on ensure: invalid byte sequence in
 US-ASCII at 3:/root/mf-prod.pp

>>>
>>> I've seen this error when the puppet master process started by init
>>> receives a different locale environment than when it is started from the
>>> command line.
>>>
>>> Check /proc/$pid/env of the running puppet master process for LANG/LC_*
>>> and compare that to your shell env.
>>>
>>>
>>> Regards, David
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Puppet Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to 
>>> puppet-users+unsubscribe@**googlegroups.com
>>> .
>>> To post to this group, send email to puppet-users@googlegroups.com.
>>> Visit this group at 
>>> http://groups.google.com/**group/puppet-users?hl=en
>>> .
>>> For more options, visit 
>>> https://groups.google.com/**groups/opt_out
>>> .
>>>
>>>
>>>
>>
>>
>> --
>> Thanks,
>> William
>>
>
>
>
> --
> Thanks,
> William
>



-- 
Thanks,
William

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] Error with service: "invalid byte sequence in US-ASCII"

2013-09-02 Thread William Van Hevelingen
Found the bug that Jeff created

http://projects.puppetlabs.com/issues/11303


On Mon, Sep 2, 2013 at 11:42 PM, William Van Hevelingen wrote:

> I get the same error when running puppet-lint puppet 3.1.x regression?
>
> rake aborted!
> invalid byte sequence in US-ASCII
> /shadow/home/blkperl/.rvm/gems/ruby-1.9.3-p194/gems/puppet-lint-0.3.2/lib/puppet-lint/lexer.rb:120:in
> `[]'
> /shadow/home/blkperl/.rvm/gems/ruby-1.9.3-p194/gems/puppet-lint-0.3.2/lib/puppet-lint/lexer.rb:120:in
> `block in tokenise'
> /shadow/home/blkperl/.rvm/gems/ruby-1.9.3-p194/gems/puppet-lint-0.3.2/lib/puppet-lint/lexer.rb:119:in
> `each'
> /shadow/home/blkperl/.rvm/gems/ruby-1.9.3-p194/gems/puppet-lint-0.3.2/lib/puppet-lint/lexer.rb:119:in
> `tokenise'
> /shadow/home/blkperl/.rvm/gems/ruby-1.9.3-p194/gems/puppet-lint-0.3.2/lib/puppet-lint/plugin.rb:40:in
> `load_data'
> /shadow/home/blkperl/.rvm/gems/ruby-1.9.3-p194/gems/puppet-lint-0.3.2/lib/puppet-lint/plugin.rb:54:in
> `run'
> /shadow/home/blkperl/.rvm/gems/ruby-1.9.3-p194/gems/puppet-lint-0.3.2/lib/puppet-lint.rb:155:in
> `run'
> /shadow/home/blkperl/.rvm/gems/ruby-1.9.3-p194/gems/puppet-lint-0.3.2/lib/puppet-lint/tasks/puppet-lint.rb:23:in
> `block (3 levels) in initialize'
> /shadow/home/blkperl/.rvm/gems/ruby-1.9.3-p194/gems/puppet-lint-0.3.2/lib/puppet-lint/tasks/puppet-lint.rb:21:in
> `each'
> /shadow/home/blkperl/.rvm/gems/ruby-1.9.3-p194/gems/puppet-lint-0.3.2/lib/puppet-lint/tasks/puppet-lint.rb:21:in
> `block (2 levels) in initialize'
> /shadow/home/blkperl/.rvm/gems/ruby-1.9.3-p194/gems/puppet-lint-0.3.2/lib/puppet-lint/tasks/puppet-lint.rb:13:in
> `block in initialize'
> Tasks: TOP => lint
>
>
>
> On Tue, May 21, 2013 at 2:43 AM, David Schmitt  wrote:
>
>> On 19.05.2013 14:18, Mateusz Fiołka wrote:
>>
>>> I'm not sure if it is related to the services. It rather looks like
>>> puppet related to me.
>>> I'm having a similar problem on a newly created vps. When I do puppet
>>> apply first time I get the message:
>>>
>>> Error: Could not set 'present' on ensure: invalid byte sequence in
>>> US-ASCII at 3:/root/mf-prod.pp
>>>
>>
>> I've seen this error when the puppet master process started by init
>> receives a different locale environment than when it is started from the
>> command line.
>>
>> Check /proc/$pid/env of the running puppet master process for LANG/LC_*
>> and compare that to your shell env.
>>
>>
>> Regards, David
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Puppet Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to 
>> puppet-users+unsubscribe@**googlegroups.com
>> .
>> To post to this group, send email to puppet-users@googlegroups.com.
>> Visit this group at 
>> http://groups.google.com/**group/puppet-users?hl=en
>> .
>> For more options, visit 
>> https://groups.google.com/**groups/opt_out
>> .
>>
>>
>>
>
>
> --
> Thanks,
> William
>



-- 
Thanks,
William

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] Error with service: "invalid byte sequence in US-ASCII"

2013-09-02 Thread William Van Hevelingen
I get the same error when running puppet-lint puppet 3.1.x regression?

rake aborted!
invalid byte sequence in US-ASCII
/shadow/home/blkperl/.rvm/gems/ruby-1.9.3-p194/gems/puppet-lint-0.3.2/lib/puppet-lint/lexer.rb:120:in
`[]'
/shadow/home/blkperl/.rvm/gems/ruby-1.9.3-p194/gems/puppet-lint-0.3.2/lib/puppet-lint/lexer.rb:120:in
`block in tokenise'
/shadow/home/blkperl/.rvm/gems/ruby-1.9.3-p194/gems/puppet-lint-0.3.2/lib/puppet-lint/lexer.rb:119:in
`each'
/shadow/home/blkperl/.rvm/gems/ruby-1.9.3-p194/gems/puppet-lint-0.3.2/lib/puppet-lint/lexer.rb:119:in
`tokenise'
/shadow/home/blkperl/.rvm/gems/ruby-1.9.3-p194/gems/puppet-lint-0.3.2/lib/puppet-lint/plugin.rb:40:in
`load_data'
/shadow/home/blkperl/.rvm/gems/ruby-1.9.3-p194/gems/puppet-lint-0.3.2/lib/puppet-lint/plugin.rb:54:in
`run'
/shadow/home/blkperl/.rvm/gems/ruby-1.9.3-p194/gems/puppet-lint-0.3.2/lib/puppet-lint.rb:155:in
`run'
/shadow/home/blkperl/.rvm/gems/ruby-1.9.3-p194/gems/puppet-lint-0.3.2/lib/puppet-lint/tasks/puppet-lint.rb:23:in
`block (3 levels) in initialize'
/shadow/home/blkperl/.rvm/gems/ruby-1.9.3-p194/gems/puppet-lint-0.3.2/lib/puppet-lint/tasks/puppet-lint.rb:21:in
`each'
/shadow/home/blkperl/.rvm/gems/ruby-1.9.3-p194/gems/puppet-lint-0.3.2/lib/puppet-lint/tasks/puppet-lint.rb:21:in
`block (2 levels) in initialize'
/shadow/home/blkperl/.rvm/gems/ruby-1.9.3-p194/gems/puppet-lint-0.3.2/lib/puppet-lint/tasks/puppet-lint.rb:13:in
`block in initialize'
Tasks: TOP => lint



On Tue, May 21, 2013 at 2:43 AM, David Schmitt  wrote:

> On 19.05.2013 14:18, Mateusz Fiołka wrote:
>
>> I'm not sure if it is related to the services. It rather looks like
>> puppet related to me.
>> I'm having a similar problem on a newly created vps. When I do puppet
>> apply first time I get the message:
>>
>> Error: Could not set 'present' on ensure: invalid byte sequence in
>> US-ASCII at 3:/root/mf-prod.pp
>>
>
> I've seen this error when the puppet master process started by init
> receives a different locale environment than when it is started from the
> command line.
>
> Check /proc/$pid/env of the running puppet master process for LANG/LC_*
> and compare that to your shell env.
>
>
> Regards, David
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to 
> puppet-users+unsubscribe@**googlegroups.com
> .
> To post to this group, send email to puppet-users@googlegroups.com.
> Visit this group at 
> http://groups.google.com/**group/puppet-users?hl=en
> .
> For more options, visit 
> https://groups.google.com/**groups/opt_out
> .
>
>
>


-- 
Thanks,
William

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] Puppetdb module installation error -

2013-09-02 Thread Ken Barber
> I don't know if the merge is finished, but module installation seems to no
> longer function :

No it is not.

> [root@servername]# puppet module install puppetlabs/puppetdb
> Notice: Preparing to install into /etc/puppet/modules ...
> Notice: Downloading from https://forge.puppetlabs.com ...
> Notice: Installing -- do not interrupt ...
> Error: No such file or directory -
> /etc/puppet/modules/firewall/spec/fixtures/modules/firewall/manifests
> Error: Try 'puppet help module install' for usage
>
> The file indicated does exist but is a link to another folder which do not
> exist...

That looks like a packaging error with the firewall module, if its
still happening and there isn't already one - raise a bug on it:
https://github.com/puppetlabs/puppetlabs-firewall/issues?state=open

ken.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.


[Puppet Users] Re: rspec-puppet with() require syntax

2013-09-02 Thread Guy Knights
I just worked this out shortly after my original post. The syntax I found 
that works is  

*'require' => 'Class[Couchbase::Server::Install]'*

On Monday, 2 September 2013 11:46:34 UTC-7, Guy Knights wrote:
>
> I'm writing a test for a module which declares a service resource that has 
> a require parameter. However, when I run the test it throws an error on 
> this require as it seems that I have the syntax wrong. I've tried a few 
> different combinations but nothing seems to work. The error is below:
>
> */usr/bin/ruby1.8 -S rspec spec/classes/init_spec.rb 
> spec/classes/server_spec.rb*
> *..F*
> *
> *
> *Failures:*
> *
> *
> *  1) couchbase::server should include Class[couchbase::server::install]*
> * Failure/Error: 'require' => Class['couchbase::server::install']*
> * NoMethodError:*
> *   undefined method `[]' for Class:Class*
> * # ./spec/classes/server_spec.rb:9*
> *
> *
> *Finished in 8.95 seconds*
> *3 examples, 1 failure*
> *
> *
> *Failed examples:*
> *
> *
> *rspec ./spec/classes/server_spec.rb:4 # couchbase::server should include 
> Class[couchbase::server::install]*
> *
> *
> I tried enclosing the entire Class[] string in double quotes (leaving the 
> single quotes surrounding the class name) but then I get this error:
>
> *Failures:*
> *
> *
> *  1) couchbase::server should contain Service[couchbase-server] with 
> ensure => "running", enable => "true" and require => 
> "Class['couchbase::server::install']"*
> * Failure/Error: )*
> *   expected that the catalogue would contain 
> Service[couchbase-server] with require set to 
> `"Class['couchbase::server::install']"` but it is set to 
> `Class[Couchbase::Server::Install]{:name=>"Couchbase::Server::Install"}` in 
> the catalogue*
> * # ./spec/classes/server_spec.rb:10*
> *
> *
> So I tried changing it to the exact syntax it mentions in the catalogue, 
> but it still doesn't work. What is the correct way to specify a require 
> parameter as part of a "with" chain?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.


[Puppet Users] rspec-puppet with() require syntax

2013-09-02 Thread Guy Knights
I'm writing a test for a module which declares a service resource that has 
a require parameter. However, when I run the test it throws an error on 
this require as it seems that I have the syntax wrong. I've tried a few 
different combinations but nothing seems to work. The error is below:

*/usr/bin/ruby1.8 -S rspec spec/classes/init_spec.rb 
spec/classes/server_spec.rb*
*..F*
*
*
*Failures:*
*
*
*  1) couchbase::server should include Class[couchbase::server::install]*
* Failure/Error: 'require' => Class['couchbase::server::install']*
* NoMethodError:*
*   undefined method `[]' for Class:Class*
* # ./spec/classes/server_spec.rb:9*
*
*
*Finished in 8.95 seconds*
*3 examples, 1 failure*
*
*
*Failed examples:*
*
*
*rspec ./spec/classes/server_spec.rb:4 # couchbase::server should include 
Class[couchbase::server::install]*
*
*
I tried enclosing the entire Class[] string in double quotes (leaving the 
single quotes surrounding the class name) but then I get this error:

*Failures:*
*
*
*  1) couchbase::server should contain Service[couchbase-server] with 
ensure => "running", enable => "true" and require => 
"Class['couchbase::server::install']"*
* Failure/Error: )*
*   expected that the catalogue would contain Service[couchbase-server] 
with require set to `"Class['couchbase::server::install']"` but it is set 
to `Class[Couchbase::Server::Install]{:name=>"Couchbase::Server::Install"}` 
in the catalogue*
* # ./spec/classes/server_spec.rb:10*
*
*
So I tried changing it to the exact syntax it mentions in the catalogue, 
but it still doesn't work. What is the correct way to specify a require 
parameter as part of a "with" chain?

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] Puppet under HA Environment

2013-09-02 Thread Stuart Cracraft
How can this be randomized within a range?

I believe someone mentioned "splay" ?

My fear is that all the boxes will request at a similar some day, by chance
and send a tidal wave over to the master.

On Sep 1, 2013, at 10:27 PM, Rahul Khengare  wrote:

> You can use different runinterval for each client.
> This can be done using editing of "/etc/puppet/puppet.conf" on each client 
> machine.
> Set the following (add a new line if it's not already present) 
> in the [agent] section of the file:
> 
> runinterval=XXX
> 
> where, XXX is the time in seconds(default is 180),
> 
> Thanks and Regards,
> Rahul Khengare,
> NTT DATA OSS Center, Pune, India.
> 
> 
> On Friday, August 30, 2013 2:20:36 AM UTC+5:30, rjbu...@gmail.com wrote:
> How do I avoid a situation where all of my Linux servers execute a service 
> restart at the same time upon receiving a new configuration change via 
> Puppet?  I am trying to avoid any possibility that the service would be 
> unavailable for any length of time.  The servers are behind a load balancer.  
> At least one node needs to remain available.  Any idea how I might configure 
> Puppet to work in this HA environment?
> 
> Thank you for your feedback!
> 
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to puppet-users+unsubscr...@googlegroups.com.
> To post to this group, send email to puppet-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/puppet-users.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.


[Puppet Users] Re: puppetdb - getting a list of specific facts for specific hosts?

2013-09-02 Thread Klavs Klavsen
This gives me the ipaddress (and hostname).. now to figure out how to 
filter on hostname regex..

'query=["=", "name", "ipaddress"]'

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.


[Puppet Users] Re: puppetdb - getting a list of specific facts for specific hosts?

2013-09-02 Thread Klavs Klavsen
I also tried https://github.com/dalen/puppet-puppetdbquery - but that 
didn't really get me any closer :(

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.


[Puppet Users] puppetdb - getting a list of specific facts for specific hosts?

2013-09-02 Thread Klavs Klavsen
I'm trying to query puppetdb for a list of hosts maching a certain regex 
(on hostname) and only returns 2 facts (ipaddress and hostname)

I'm trying to follow:
http://docs.puppetlabs.com/puppetdb/latest/api/query/tutorial.html

and I'm not even quite sure, wether or not, I should use a facts or a 
nodes, or a resources query ?

I get some of the queries to return just fine.. f.ex. I can query on nodes:
curl -X GET -H 'Accept: application/json' http://localhost:8080/v2/nodes 
--data-urlencode 'query=["~", ["fact", "hostname"], "webserver"]'

But I can't figure out how I can make that query, return 1 extra fact 
(ipaddress).. ?

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] Puppetdb module installation error -

2013-09-02 Thread yannig rousseau
Hi,

I don't know if the merge is finished, but module installation seems to no 
longer function :

*[root@servername]# puppet module install puppetlabs/puppetdb
Notice: Preparing to install into /etc/puppet/modules ...
Notice: Downloading from https://forge.puppetlabs.com ...
Notice: Installing -- do not interrupt ...
Error: No such file or directory - 
/etc/puppet/modules/firewall/spec/fixtures/modules/firewall/manifests
Error: Try 'puppet help module install' for usage*

The file indicated does exist but is a link to another folder which do not 
exist...

On Tuesday, August 27, 2013 6:35:58 PM UTC+2, Ken Barber wrote:
>
> We have a patch for this but are assessing the impact before merging. 
> For now I'd just ignore the warning, it shouldn't affect operation. 
>
> On Tue, Aug 27, 2013 at 9:28 AM, yannig rousseau 
> > wrote: 
> > Is the module puppetdb from the forge still correct ? 
> > Every time I try to install puppetdb from the puppet module ("puppet 
> module 
> > install puppetlabs/puppetdb"), i got a warning : 
> > Warning: cprice404-inifile is deprecated; please update to 
> > puppetlabs-inifile 
> > 
> > How may i install the puppetlabs-inifile instead of cprice404 ?? 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "Puppet Users" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an 
> > email to puppet-users...@googlegroups.com . 
> > To post to this group, send email to 
> > puppet...@googlegroups.com. 
>
> > Visit this group at http://groups.google.com/group/puppet-users. 
> > For more options, visit https://groups.google.com/groups/opt_out. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.


[Puppet Users] chaining of create_resources

2013-09-02 Thread kashif

Hi 
I am using create_resource to create a dir and then mount it. I am using 
two create_resources and want one to be completed before other. 

$mount_point = hiera('test::mount_point', []) 
$defaults = {
 'ensure' => 'directory',
}
$mountit = hiera('test::mountit')
create_resources (file, $mount_point, $defaults)
create_resources (mount, $mountit)

hiera_yaml is

test::mount_point:
  '/local_area':
owner: root
group: root
mode: 0644
 
test::mountit:
   '/local_area':
 device  : "mymachine:/software"
 fstype  : "nfs"
 ensure  : "mounted"
 options : "nfsvers=3,tcp,noatime,hard,intr,exec,rw,bg,nosuid"
 atboot  : true
# require : [ File['/local_area'] ],
   

It works if I comment out require line but fail with this error if I 
un-comment require line

Error: Failed to apply catalog: Could not find dependency 
File['/local_area'] for Mount[/local_area]

Is there any other way to chain two create_resources statements ?

Thanks
Kashif


-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.