Re: [Puppet Users] Re: Best way to change settings on an individual node

2017-11-02 Thread Rob Nelson
If the only difference is in the virtual hosts, then you should be able to
apply the same classes to each and use different data only. Hiera, included
with puppet, is a key/value pair lookup tool that can help here, so each
node would receive their vhost data and only their vhosts. I think you
should find plenty of hiera docs on puppet’s websites and others (I’m on my
phone or I’d grab a link or three) and we are glad to help you here or on
slack if you need more help with it.

On Thu, Nov 2, 2017 at 12:44 PM  wrote:

> Thanks Eric.  I've read that documentation and it always refers to
> multiple nodes.  It just feels like I'm doing it wrong.  If I have a small
> group of 4 web servers that all run different virtual hosts, the only way
> to use the node classification groups is to pin each node to it's own group
> and apply the classes to them.  I can do that, it just feels like there is
> a better way.
>
> On Thursday, November 2, 2017 at 11:54:07 AM UTC-4, Eric Sorenson wrote:
>
>> Hi Jack, for puppet enterprise there's a built-in workflow for assigning
>> classes to nodes - the phrase you're looking for is called "node
>> classification" in puppet-speak.  here's the relevant doc:
>> https://puppet.com/docs/pe/2017.3/managing_nodes/grouping_and_classifying_nodes.html
>>
>> hope this helps!
>>
> --eric0
>>
>
>>
>> On Thursday, November 2, 2017 at 5:37:29 AM UTC-7, jacka...@gmail.com
>> wrote:
>>>
>>> Hi,
>>> I'm a new puppet enterprise user (first post!) and I need to change
>>> some settings on an individual node.  The module is created and it works in
>>> my testing, but every method of applying the module to one machine feels
>>> like I'm doing it wrong. What is the best way to accomplish this?  Feel
>>> free to point me to some documentation, if I'm simply missing something.
>>>
>>> Thanks,
>>>
>>> Jack
>>>
>> --
> 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/2f5ccbd2-fccd-4fea-b8d2-c2f2cd93d03c%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Rob Nelson

-- 
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/CAC76iT-jtwD9gWTh5LtZvvZE%3DADJO5bFeVtQy_SSGfWibnYY6w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: Best way to change settings on an individual node

2017-11-02 Thread jackandnora
Thanks Eric.  I've read that documentation and it always refers to multiple 
nodes.  It just feels like I'm doing it wrong.  If I have a small group of 
4 web servers that all run different virtual hosts, the only way to use the 
node classification groups is to pin each node to it's own group and apply 
the classes to them.  I can do that, it just feels like there is a better 
way.  

On Thursday, November 2, 2017 at 11:54:07 AM UTC-4, Eric Sorenson wrote:
>
> Hi Jack, for puppet enterprise there's a built-in workflow for assigning 
> classes to nodes - the phrase you're looking for is called "node 
> classification" in puppet-speak.  here's the relevant doc: 
> https://puppet.com/docs/pe/2017.3/managing_nodes/grouping_and_classifying_nodes.html
>
> hope this helps!
> --eric0
>
> On Thursday, November 2, 2017 at 5:37:29 AM UTC-7, jacka...@gmail.com 
>  wrote:
>>
>> Hi,
>> I'm a new puppet enterprise user (first post!) and I need to change 
>> some settings on an individual node.  The module is created and it works in 
>> my testing, but every method of applying the module to one machine feels 
>> like I'm doing it wrong. What is the best way to accomplish this?  Feel 
>> free to point me to some documentation, if I'm simply missing something. 
>>
>> Thanks,
>>
>> Jack
>>
>

-- 
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/2f5ccbd2-fccd-4fea-b8d2-c2f2cd93d03c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: Best way to change settings on an individual node

2017-11-02 Thread jackandnora
Thanks Eric,


On Thursday, November 2, 2017 at 11:54:07 AM UTC-4, Eric Sorenson wrote:
>
> Hi Jack, for puppet enterprise there's a built-in workflow for assigning 
> classes to nodes - the phrase you're looking for is called "node 
> classification" in puppet-speak.  here's the relevant doc: 
> https://puppet.com/docs/pe/2017.3/managing_nodes/grouping_and_classifying_nodes.html
>
> hope this helps!
> --eric0
>
> On Thursday, November 2, 2017 at 5:37:29 AM UTC-7, jacka...@gmail.com 
>  wrote:
>>
>> Hi,
>> I'm a new puppet enterprise user (first post!) and I need to change 
>> some settings on an individual node.  The module is created and it works in 
>> my testing, but every method of applying the module to one machine feels 
>> like I'm doing it wrong. What is the best way to accomplish this?  Feel 
>> free to point me to some documentation, if I'm simply missing something. 
>>
>> Thanks,
>>
>> Jack
>>
>

-- 
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/824983c2-6d5a-4a9f-9586-5e75c6377b70%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] I need help please

2017-11-02 Thread Henrik Lindberg

On 30/10/17 21:11, Axel Ferreira wrote:

Good morning everyone, I need help to make puppet work

Since 9 days ago I am trying to make it work but there are no results in 
favor, could someone give me a guide on how to start from scratch ?, 
esque I have no experience and it is a task that I must do



https://puppet.com/blog/how-get-started-puppet-beginners-guide

Best,
- henrik



--
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/e5bb973c-1a56-4403-aae5-32b81db109e6%40googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.



--

Visit my Blog "Puppet on the Edge"
http://puppet-on-the-edge.blogspot.se/

--
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/otfguc%2477v%241%40blaine.gmane.org.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: Best way to change settings on an individual node

2017-11-02 Thread Eric Sorenson
Hi Jack, for puppet enterprise there's a built-in workflow for assigning 
classes to nodes - the phrase you're looking for is called "node 
classification" in puppet-speak.  here's the relevant 
doc: 
https://puppet.com/docs/pe/2017.3/managing_nodes/grouping_and_classifying_nodes.html

hope this helps!
--eric0

On Thursday, November 2, 2017 at 5:37:29 AM UTC-7, jackandn...@gmail.com 
wrote:
>
> Hi,
> I'm a new puppet enterprise user (first post!) and I need to change 
> some settings on an individual node.  The module is created and it works in 
> my testing, but every method of applying the module to one machine feels 
> like I'm doing it wrong. What is the best way to accomplish this?  Feel 
> free to point me to some documentation, if I'm simply missing something. 
>
> Thanks,
>
> Jack
>

-- 
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/b6469759-3713-46d7-ab69-88149b5bb10b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] multiple puppetdb, single postgres

2017-11-02 Thread Christopher Wood
Running two puppetdb in front of a single postgresql here and it's fine. The 
puppetservers use one puppetdb for everything and the second puppetdb is for 
monitoring and interactive use. The only hiccoughs are when trans-oceanic links 
blip.

The puppetdb instances are managed using puppet and at my SLA levels I get to 
shrug and say that agent runs will fail for a minute or so during the upgrade. 
Depending on your SLA you may have to upgrade at a specific time or swap 
servers behind a load balancer or something else quicker.

If I had a tighter SLA I would build new upgraded puppetdb hosts instead of 
upgrading in place. (Then repoint the puppetservers and turn down the old 
puppetdb hosts.) I haven't had schema issues during puppetdb upgrades.

For the puppet 4->5 upgrade I have a new 1xPostgreSQL9.6+2xPuppetDB5 set built, 
the upgraded puppetservers will fill them up soon enough.

On Thu, Nov 02, 2017 at 03:35:33PM +0100, Fabrice Bacchella wrote:
> Is there any risk running multiple puppetdb reading or perhaps writing to a 
> single postgres database ?
> 
> For my understanding, all puppetdb's data are stored in pg, so there is no 
> coherency problems, but too much caching on pdb's side might break that 
> assumption.
> 
> There is also the schema consistency. Upgrading one puppetdb without checking 
> the other might break it.
> 
> Is there any other failure case that I didn't think about ?
> 
> The goal is not to have a full HA solution, but be able to upgrade the 
> servers regularly without service disruption, as our puppetdb is used by 
> other tools than the puppet server.
> 
> -- 
> 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/398CFCCB-5704-426C-B438-B36FCB4D1CE0%40orange.fr.
> 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/20171102145457.mugalpasrarkp2lk%40iniquitous.heresiarch.ca.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] multiple puppetdb, single postgres

2017-11-02 Thread Fabrice Bacchella
Is there any risk running multiple puppetdb reading or perhaps writing to a 
single postgres database ?

For my understanding, all puppetdb's data are stored in pg, so there is no 
coherency problems, but too much caching on pdb's side might break that 
assumption.

There is also the schema consistency. Upgrading one puppetdb without checking 
the other might break it.

Is there any other failure case that I didn't think about ?

The goal is not to have a full HA solution, but be able to upgrade the servers 
regularly without service disruption, as our puppetdb is used by other tools 
than the puppet server.

-- 
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/398CFCCB-5704-426C-B438-B36FCB4D1CE0%40orange.fr.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Best way to change settings on an individual node

2017-11-02 Thread jackandnora
Hi,
I'm a new puppet enterprise user (first post!) and I need to change 
some settings on an individual node.  The module is created and it works in 
my testing, but every method of applying the module to one machine feels 
like I'm doing it wrong. What is the best way to accomplish this?  Feel 
free to point me to some documentation, if I'm simply missing something. 

Thanks,

Jack

-- 
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/2f2fa02d-8000-46ac-9b6b-376aa3effb88%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] I need help please

2017-11-02 Thread Axel Ferreira
Good morning everyone, I need help to make puppet work

Since 9 days ago I am trying to make it work but there are no results in 
favor, could someone give me a guide on how to start from scratch ?, esque 
I have no experience and it is a task that I must do

-- 
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/e5bb973c-1a56-4403-aae5-32b81db109e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Regenerating expiring agent cert on the master host (not CA cert)

2017-11-02 Thread Andy Smith
On Wed, Nov 01, 2017 at 05:32:32PM +, Andy Smith wrote:
> I note that certregen specifically says it's not designed to deal
> with agent certificate renewal, so, what is the correct way to do
> it when we're talking about the agent that is also the puppetmaster?

I did:

# puppet cert clean puppet0.example.com
# rm -v /var/lib/puppet/ssl/ca/signed/puppet0.example.com.pem \
/var/lib/puppet/ssl/certs/puppet0.example.com.pem \
/var/lib/puppet/ssl/certificate_requests/puppet0.example.com.pem \
/var/lib/puppet/ssl/private_keys/puppet0.example.com.pem

then restarted nginx and unicorn then:

# puppet agent --test

and things seemed okay from the on.

Cheers,
Andy

-- 
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/20171102112132.GO3124%40bitfolk.com.
For more options, visit https://groups.google.com/d/optout.