Re: [Puppet Users] rabbitmq module (5.2.3) - puppet 2.7.26 - Could not autoload rabbitmq_erlang_cookie undefined method `has_command'

2015-09-03 Thread kdo
have got 4.1.0 to work with rabbitmq clustering enalbed after applying a 
patch so all good now. thanks again

On Friday, September 4, 2015 at 10:42:31 AM UTC+10, kdo wrote:
>
> Thanks Morgan for getting back to me.
>
> I can see a version 4.1 and 4.0 of the puppetlabs rabbitmq module. Does 
> that mean I should be able to run a version < 5.0 of the rabbitmq module on 
> my 2.7.26 puppet environment ? 
>
> On Fri, Sep 4, 2015 at 2:45 AM, Morgan Haskel  
> wrote:
>
>> Hi,
>>
>> Version 5.0.0 of the rabbitmq module dropped support for Puppet 2.7, it 
>> was noted in the CHANGELOG 
>> 
>> .
>>
>> Cheers,
>> Morgan
>>
>>> Hello all,
>>>
>>> wondering whether anyone may have come across this issue before. The 
>>> module works if clustering is set to false. We however require clustering 
>>> to be setup so would like to get this working if possible. I haven't read 
>>> that master 2.7 is not supported with version of puppetlabs rabbitmq module 
>>> (5.2.3) 
>>>
>>> err: Failed to apply catalog: Could not autoload rabbitmq_erlang_cookie: 
>>> Could not autoload 
>>> /var/lib/puppet/lib/puppet/provider/rabbitmq_erlang_cookie/ruby.rb: 
>>> undefined method `has_command' for 
>>> Puppet::Type::Rabbitmq_erlang_cookie::ProviderRuby:Class
>>>
>>> some of our settings in param.pp
>>>
>>>   config_cluster   => true,
>>>   cluster_nodes=> ['host1', 'host2'],
>>>   cluster_node_type=> 'ram',
>>>   erlang_cookie=> 'A_SECRET_COOKIE_STRING',
>>>   wipe_db_on_cookie_change => true,
>>>
>>>
>>> thanks in advance
>>> -- 
>>> 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 view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/puppet-users/9f4937cc-e8f3-4307-9082-7d7b1df109d5%40googlegroups.com
>>>  
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> -- 
>> Morgan Haskel
>> mor...@puppetlabs.com
>> Module Engineer
>>
>> *PuppetConf 2015  is coming to Portland, 
>> Oregon! Join us October 5-9.*
>> *Register now to take advantage of the Final Countdown discount 
>> 
>>  *
>> *—**save $149!*
>>
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Puppet Users" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/puppet-users/2bcJ3m9nb70/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> puppet-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/puppet-users/CA%2BFnDv0dgpNE43SL8Y9FPJBbEax5YZsmDiN_t%2BCPFTwQeiTNOQ%40mail.gmail.com
>>  
>> 
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/c37aa3c6-4db4-470e-9bc3-762a26af9d13%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] rabbitmq module (5.2.3) - puppet 2.7.26 - Could not autoload rabbitmq_erlang_cookie undefined method `has_command'

2015-09-03 Thread kdo
have got 4.1.0 to work with rabbitmq clustering enalbed after applying a 
patch so all good now. thanks again

On Friday, September 4, 2015 at 10:42:31 AM UTC+10, kdo wrote:
>
> Thanks Morgan for getting back to me.
>
> I can see a version 4.1 and 4.0 of the puppetlabs rabbitmq module. Does 
> that mean I should be able to run a version < 5.0 of the rabbitmq module on 
> my 2.7.26 puppet environment ? 
>
> On Fri, Sep 4, 2015 at 2:45 AM, Morgan Haskel  
> wrote:
>
>> Hi,
>>
>> Version 5.0.0 of the rabbitmq module dropped support for Puppet 2.7, it 
>> was noted in the CHANGELOG 
>> 
>> .
>>
>> Cheers,
>> Morgan
>>
>> On Wed, Sep 2, 2015 at 10:43 PM kdo  wrote:
>>
>>> Hello all,
>>>
>>> wondering whether anyone may have come across this issue before. The 
>>> module works if clustering is set to false. We however require clustering 
>>> to be setup so would like to get this working if possible. I haven't read 
>>> that master 2.7 is not supported with version of puppetlabs rabbitmq module 
>>> (5.2.3) 
>>>
>>> err: Failed to apply catalog: Could not autoload rabbitmq_erlang_cookie: 
>>> Could not autoload 
>>> /var/lib/puppet/lib/puppet/provider/rabbitmq_erlang_cookie/ruby.rb: 
>>> undefined method `has_command' for 
>>> Puppet::Type::Rabbitmq_erlang_cookie::ProviderRuby:Class
>>>
>>> some of our settings in param.pp
>>>
>>>   config_cluster   => true,
>>>   cluster_nodes=> ['host1', 'host2'],
>>>   cluster_node_type=> 'ram',
>>>   erlang_cookie=> 'A_SECRET_COOKIE_STRING',
>>>   wipe_db_on_cookie_change => true,
>>>
>>>
>>> thanks in advance
>>>
>>> -- 
>>> 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 view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/puppet-users/9f4937cc-e8f3-4307-9082-7d7b1df109d5%40googlegroups.com
>>>  
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> -- 
>> Morgan Haskel
>> mor...@puppetlabs.com
>> Module Engineer
>>
>> *PuppetConf 2015  is coming to Portland, 
>> Oregon! Join us October 5-9.*
>> *Register now to take advantage of the Final Countdown discount 
>> 
>>  *
>> *—**save $149!*
>>
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Puppet Users" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/puppet-users/2bcJ3m9nb70/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> puppet-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/puppet-users/CA%2BFnDv0dgpNE43SL8Y9FPJBbEax5YZsmDiN_t%2BCPFTwQeiTNOQ%40mail.gmail.com
>>  
>> 
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/db203120-a353-47d1-8d22-81d1d1c31de2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] rabbitmq module (5.2.3) - puppet 2.7.26 - Could not autoload rabbitmq_erlang_cookie undefined method `has_command'

2015-09-03 Thread Karl Hampel
Thanks Morgan for getting back to me.

I can see a version 4.1 and 4.0 of the puppetlabs rabbitmq module. Does
that mean I should be able to run a version < 5.0 of the rabbitmq module on
my 2.7.26 puppet environment ?

On Fri, Sep 4, 2015 at 2:45 AM, Morgan Haskel  wrote:

> Hi,
>
> Version 5.0.0 of the rabbitmq module dropped support for Puppet 2.7, it
> was noted in the CHANGELOG
> 
> .
>
> Cheers,
> Morgan
>
> On Wed, Sep 2, 2015 at 10:43 PM kdo  wrote:
>
>> Hello all,
>>
>> wondering whether anyone may have come across this issue before. The
>> module works if clustering is set to false. We however require clustering
>> to be setup so would like to get this working if possible. I haven't read
>> that master 2.7 is not supported with version of puppetlabs rabbitmq module
>> (5.2.3)
>>
>> err: Failed to apply catalog: Could not autoload rabbitmq_erlang_cookie:
>> Could not autoload
>> /var/lib/puppet/lib/puppet/provider/rabbitmq_erlang_cookie/ruby.rb:
>> undefined method `has_command' for
>> Puppet::Type::Rabbitmq_erlang_cookie::ProviderRuby:Class
>>
>> some of our settings in param.pp
>>
>>   config_cluster   => true,
>>   cluster_nodes=> ['host1', 'host2'],
>>   cluster_node_type=> 'ram',
>>   erlang_cookie=> 'A_SECRET_COOKIE_STRING',
>>   wipe_db_on_cookie_change => true,
>>
>>
>> thanks in advance
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/puppet-users/9f4937cc-e8f3-4307-9082-7d7b1df109d5%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> Morgan Haskel
> mor...@puppetlabs.com
> Module Engineer
>
> *PuppetConf 2015  is coming to Portland,
> Oregon! Join us October 5-9.*
> *Register now to take advantage of the Final Countdown discount
> 
>  *
> *—**save $149!*
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Puppet Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/puppet-users/2bcJ3m9nb70/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> puppet-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/CA%2BFnDv0dgpNE43SL8Y9FPJBbEax5YZsmDiN_t%2BCPFTwQeiTNOQ%40mail.gmail.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CA%2BK3kmGAT7KK3jSsDTL_GowRaNJhLa-2Y0N-6T_OVhsjue1vcA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] hiera node terminus (for environments)

2015-09-03 Thread Christopher Wood
Are any of you using hiera to look up a node's environment? If so, mind sharing 
any problems you ran into, conceptually or otherwise?

I'd like to keep all the top-level node data in hiera since all changes will be 
logged with git commits. Also the environment changes can easily happen in the 
same commit as other host metadata (owner, type) changes.

Given my skill level, I suspect I am better off creating some kind of ENC that 
is aware of where the hiera node yaml is stored. I can easily control the node 
data path and the ENC script.

I found this but it didn't go anywhere, seems a bit above my head though:

https://github.com/dalen/puppet-hiera-node
https://github.com/puppetlabs/puppet/pull/1414

My background reading:

https://docs.puppetlabs.com/guides/external_nodes.html
https://docs.puppetlabs.com/references/latest/indirection.html#node

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/20150903203810.GA11459%40iniquitous.heresiarch.ca.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] rabbitmq module (5.2.3) - puppet 2.7.26 - Could not autoload rabbitmq_erlang_cookie undefined method `has_command'

2015-09-03 Thread Morgan Haskel
Hi,

Version 5.0.0 of the rabbitmq module dropped support for Puppet 2.7, it was
noted in the CHANGELOG

.

Cheers,
Morgan

On Wed, Sep 2, 2015 at 10:43 PM kdo  wrote:

> Hello all,
>
> wondering whether anyone may have come across this issue before. The
> module works if clustering is set to false. We however require clustering
> to be setup so would like to get this working if possible. I haven't read
> that master 2.7 is not supported with version of puppetlabs rabbitmq module
> (5.2.3)
>
> err: Failed to apply catalog: Could not autoload rabbitmq_erlang_cookie:
> Could not autoload
> /var/lib/puppet/lib/puppet/provider/rabbitmq_erlang_cookie/ruby.rb:
> undefined method `has_command' for
> Puppet::Type::Rabbitmq_erlang_cookie::ProviderRuby:Class
>
> some of our settings in param.pp
>
>   config_cluster   => true,
>   cluster_nodes=> ['host1', 'host2'],
>   cluster_node_type=> 'ram',
>   erlang_cookie=> 'A_SECRET_COOKIE_STRING',
>   wipe_db_on_cookie_change => true,
>
>
> thanks in advance
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/9f4937cc-e8f3-4307-9082-7d7b1df109d5%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Morgan Haskel
mor...@puppetlabs.com
Module Engineer

*PuppetConf 2015  is coming to Portland,
Oregon! Join us October 5-9.*
*Register now to take advantage of the Final Countdown discount

*
*—**save $149!*

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CA%2BFnDv0dgpNE43SL8Y9FPJBbEax5YZsmDiN_t%2BCPFTwQeiTNOQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: puppetlabs-postgrest module not loaded

2015-09-03 Thread David Levray
In  /etc/puppet/hieradata/nodes/ create a file 'puppet-sql.alflab.net.yaml' 
that contains:

---
postgresql::server:


restart your instance PuppetMaster (service httpd/apache2 restart)
Then we test hiera debug mode if it finds the information:

hiera -d postgresql::server
hiera -d sudo::configs fqdn=puppet-sql.alflab.net

or (for array)
hiera -d -a postgresql::server fqdn=puppet-sql.alflab.net

or (for hash):
hiera -d -h postgresql::server fqdn=puppet-sql.alflab.net


Can you give the return orders, please






Le samedi 29 août 2015 06:31:29 UTC+2, Alfredo De Luca a écrit :
>
> Hi all. 
> Using Puppet open source  3.8  with hiera for test purpose. 
>
> I installed puppetlabs-postgresql from forge but when on my puppet 
> client yaml I use postgresql I got the following error: 
>
>
> Error: Could not retrieve catalog from remote server: Error 400 on 
> SERVER: Could not find class postgresql for puppet-sql.alflab.net on 
> node puppet-sql.alflab.net 
>
>
> Any clue why? 
>
> Here is the yaml file 
>
> --- 
> classes: 
>   - sudo 
>   - selinux 
>   - postgresql 
>
> All the rest is working just fine. Also I tried puppetlabs-mysql but 
> same error. 
>
> Regards 
>
> -- 
> Alfredo 
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/6a741c4e-35ad-43c2-bb2d-3c48c7bc558c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: Installing foreman

2015-09-03 Thread David Levray
Hi,

install foreman :
1/ foreman-installer -i 
2/ unselect puppet
3/ select :
 Configure foreman
 Configure foreman_proxy
Configure foreman_cli

if use foreman with vmware:  Configure foreman_compute_vmware
if use foreman with kvm:  Configure foreman_compute_libvirt

that communicates with puppet foreman, configure the foreman_proxy 
in /etc/foreman-proxy/settings.yml 
and /etc/foreman-proxy/settings.d/puppet.yml

By




Le jeudi 3 septembre 2015 14:58:55 UTC+2, Vishal Goel a écrit :
>
> Hi! I want to install foreman on a* debain squeeze* machine. It has *puppet 
> 2.7.18 *installed and is already in development as a puppetmaster. It has 
> been deploying on a lot of slave machines. I looked up a lot on google but 
> the links that I found install puppetmster on machine as well which I don't 
> want to.
>
> So, what should I do?
>
> Thank you.
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/6a7b3219-8e88-41bc-81d4-740de418f570%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Re: puppetlabs-postgrest module not loaded

2015-09-03 Thread jcbollinger


On Thursday, September 3, 2015 at 6:20:42 AM UTC-5, Alfredo De Luca wrote:
>
> Hi all. 
> sorry for late reply. SoIt's not completely wrong what I am trying 
> to do but still not working. 
>


As far as I can tell, in fact, what you're trying to do is mostly *right*.  
You seem to be in better command of your site and situation than some of 
the earlier answers gave you credit for.

 

> My idea its' not to have at all any node.pp or environment.pp etc but 
> drive everything from hiera/yaml. 
>
>

Note that file names "node.pp" and "environment.pp" are not inherently 
meaningful.  I suppose you mean that you don't want to declare or use any 
node blocks (which do not necessarily have to appear in a file named 
node.pp).  Maybe you also mean you want to rely on default environment 
configuration, but that has nothing to do with any file named 
environment.pp.  Perhaps you mean instead that you don't want to write any 
"environment.conf" file.

 

> I was able to do so till I need to install postgres because I'd like 
> to evaluate puppetDB. 
>
>

Ok.  It's not clear what the problem is, or at least why what we already 
discussed did not solve it for you.

It seems you are already well aware of how to cause a class to be declared 
in your configuration: you cause its name to be included in the array 
associated with key "classes" in Hiera.  (For others who may read this, the 
key "classes" is conventional, but not special -- its significance is that 
there is a call to hiera_include('classes') in the this site's site 
manifest.)  The original problem was that you did not appreciate the 
distinction between a module and a class with the same name as that module, 
nor that modules are not required to contain such a class at all.  As a 
result, you attempted to declare a class that the Puppetlabs "postgresql" 
module does not, in fact, provide.  The solution to that problem is first 
and foremost to declare the correct class instead -- apparently 
"postgresql::server".  We covered that already, and you know how to do it.

There may be other classes you need to declare, and possibly first to 
write, to express your site-specific requirements for databases, users, 
etc. within your PostgreSQL server.  You apparently know how to write your 
own classes and modules as well, so I don't suppose that in itself is the 
problem.  You have only now mentioned *why* you are trying to configure 
postgres; it is the details in support of that use of postgres that would 
be covered by a class such as I describe.

As a secondary matter, you probably need to declare appropriate parameter 
values for class postgresql::server.  You have shown that you know how to 
declare class parameter values in Hiera as well.  You may need to find the 
*correct* parameter values for your purposes; if that's the issue then 
please focus the discussion there.

On the other hand, I would hope that the puppetdb package for your OS would 
take care of requiring PostgreSQL as a dependency, and of setting up the 
appropriate database, user, password, etc..  Thus, if using puppetdb is the 
sole reason for your attempt to manage a postgres server then perhaps your 
effort is going in the wrong direction.

Any way around, we can't help you very well without a clear idea of what 
exactly you're doing *now*, and what exactly Puppet is doing with that 
(which is not what you want it to do).  "Still not working" does not give 
us anything useful, particularly when we are uncertain what you're even 
doing that isn't working.


John

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/1cb8a037-ea0d-4439-9e52-9c3a1141dbc8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: Display the contents of a yaml file

2015-09-03 Thread jcbollinger


On Thursday, September 3, 2015 at 3:10:42 AM UTC-5, Sergiu Cornea wrote:
>
> Good morning guys,
>
> I am not sure if I am asking the right question, however, I am looking for 
> a Puppet / Foreman Web API that when called with a node name it will 
> display the contents of that YAML file?
>


By "that YAML file" do you mean the node's most recent catalog in YAML 
format?  Do you mean a freshly-built catalog in YAML format?  The ENC 
output for that node?  Something else?

 

> The reason why I am asking is that I want a particular node YAML file to 
> be displayed in a WebUI.
>
>

I'm afraid that doesn't help clarify just what YAML you want.


 

> Does anyone knows how to do this? 
>
>

Probably, once we figure out what the "this" is.


John

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/5712cf2e-5b49-46fa-8416-33f61bc4fdda%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Installing foreman

2015-09-03 Thread Vishal Goel
Hi! I want to install foreman on a* debain squeeze* machine. It has *puppet 
2.7.18 *installed and is already in development as a puppetmaster. It has 
been deploying on a lot of slave machines. I looked up a lot on google but 
the links that I found install puppetmster on machine as well which I don't 
want to.

So, what should I do?

Thank you.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/703e2894-d876-4612-a909-6efa76551178%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Re: puppetlabs-postgrest module not loaded

2015-09-03 Thread Alfredo De Luca
Hi all.
sorry for late reply. SoIt's not completely wrong what I am trying
to do but still not working.
My idea its' not to have at all any node.pp or environment.pp etc but
drive everything from hiera/yaml.

I was able to do so till I need to install postgres because I'd like
to evaluate puppetDB.

Anyway here are the conf files you David asked

[root@puppet-server puppet]# cat hiera.yaml
---
:backends:
  - yaml

:hierarchy:
  - "%{::environment}/%{::environment}"
  - "nodes/%{::fqdn}"
  - common

:yaml:
  :datadir: /etc/puppet/hieradata/

[root@puppet-server puppet]# puppet module list
Warning: Missing dependency 'puppetlabs-stdlib':
  'alfredo-sropackages' (v0.1.0) requires 'puppetlabs-stdlib' (>= 1.0.0)
  'alfredo-sroservices' (v0.1.0) requires 'puppetlabs-stdlib' (>= 1.0.0)
  'alf-srotest' (v0.1.0) requires 'puppetlabs-stdlib' (>= 1.0.0)
  'alf-srousers' (v0.1.0) requires 'puppetlabs-stdlib' (>= 1.0.0)
/etc/puppet/modules
├── alf-srotest (v0.1.0)
├── alf-srousers (v0.1.0)
├── alfredo-sropackages (v0.1.0)
├── alfredo-sroservices (v0.1.0)
├── bashtoni-timezone (v1.0.0)
├── camptocamp-augeas (v1.2.4)
├── camptocamp-postfix (v1.2.2)
├── example42-puppi (v2.1.10)
├── example42-resolver (v2.0.12)
├── example42-yum (v2.1.17)
├── nanliu-staging (v1.0.3)
├── puppetlabs-apache (v1.4.1)
├── puppetlabs-apt (v1.8.0)
├── puppetlabs-concat (v1.2.1)
├── puppetlabs-firewall (v1.5.0)
├── puppetlabs-inifile (v1.2.0)
├── puppetlabs-motd (v1.2.0)
├── puppetlabs-mysql (v3.6.0)
├── puppetlabs-ntp (v3.2.1)
├── puppetlabs-postgresql (v4.5.0)
├── puppetlabs-puppetdb (v5.0.0)
├── puppetlabs-stdlib (v4.8.0)
├── saz-ssh (v2.4.0)
├── saz-sudo (v3.0.9)
└── spiette-selinux (v0.5.4)
/usr/share/puppet/modules (no modules installed)
[root@puppet-server puppet]#

For the environment I use again hiera.yaml to split my environment.

Regards



On Thu, Sep 3, 2015 at 12:19 AM, David Levray  wrote:
> Hello,
>
> please :
> cat hiera.yaml
> puppet module list
> puppet module list --environment xxx   (xx = environment your node)
>
> ty
>
>
> Le samedi 29 août 2015 06:31:29 UTC+2, Alfredo De Luca a écrit :
>>
>> Hi all.
>> Using Puppet open source  3.8  with hiera for test purpose.
>>
>> I installed puppetlabs-postgresql from forge but when on my puppet
>> client yaml I use postgresql I got the following error:
>>
>>
>> Error: Could not retrieve catalog from remote server: Error 400 on
>> SERVER: Could not find class postgresql for puppet-sql.alflab.net on
>> node puppet-sql.alflab.net
>>
>>
>> Any clue why?
>>
>> Here is the yaml file
>>
>> ---
>> classes:
>>   - sudo
>>   - selinux
>>   - postgresql
>>
>> All the rest is working just fine. Also I tried puppetlabs-mysql but
>> same error.
>>
>> Regards
>>
>> --
>> Alfredo
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/9835033d-4c83-4e53-b604-cf316c9239e0%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.



-- 
Alfredo

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAAWpFTEszV4ZV14AJcyECLCkMvtSrhp2nFqAw-nkVJSjRQJqLg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Display the contents of a yaml file

2015-09-03 Thread Sergiu Cornea
Good morning guys,

I am not sure if I am asking the right question, however, I am looking for 
a Puppet / Foreman Web API that when called with a node name it will 
display the contents of that YAML file? The reason why I am asking is that 
I want a particular node YAML file to be displayed in a WebUI.

Does anyone knows how to do this? 

Thank you,

Regards,
Sergiu

-- 


This message and its attachments are private and confidential. If you have 
received this message in error, please notify the sender and remove it and 
its attachments from your system.

The University of Westminster is a charity and a company 
limited by guarantee. Registration number: 977818 England. 
Registered Office: 309 Regent Street, London W1B 2UW.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/025eb7e1-6f70-4b2a-ac0c-10256df1ffee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.