[Puppet Users] Designing modules with long running tasks

2015-12-02 Thread Gerhardus Geldenhuis
Hi
I am writing a module that needs to 

   - download a number of files, 
   - run an index on them 
   - and restart the service to load the index.
   

I first thought I could make the download and index actions a cron job that 
I surface via class properties but because I want to notify the service 
when these cron jobs are done that won't work. The alternative solution is 
to run download and index as execs but that could cause a puppet run to 
take 15min or longer depending on the network connection. I am not keen for 
such a long running puppet run and was wondering if anyone has solved a 
similar problem and could share some code. Alternatively if there is a 
module on forge that solves a similar problem then I would very much 
appreciate a pointer to it, to see how it is done. 

One possible solution would be to manually add in a service restart as part 
of the cron job entry that the module creates. That feels a bit clunky 
though. 

Best Regares

-- 
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/5febcd63-9571-4f2b-99d5-831efea0ac05%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Beaker does not install puppet in Ubuntu boxes

2015-12-02 Thread Khoury Brazil
I think this is the problem:
>platform: ubuntu-server-14.04-amd64

platform gets split into 3:
@variant, version, @arch = self.split('-', 3)
>From that you get:
["ubuntu", "server", "14.04-amd64"]
When it tries to evaluate the hash it has of platform version codes using
version ('server') it gets back nil. It's expecting something like '14.04'
there instead.

tldr: Your platform string probably shouldn't have '-server' in it.

On Tue, Dec 1, 2015 at 12:26 PM Danny Roberts <
dannyroberts.perso...@googlemail.com> wrote:

> When running acceptance tests with an Ubuntu box with the following config:
>
> HOSTS:
>   ubuntu-server-1404-x64:
> roles:
>   - master
> platform: ubuntu-server-14.04-amd64
> box: puppetlabs/ubuntu-14.04-64-nocm
> hypervisor: vagrant
>
> CONFIG:
>   log_level: verbose
>   type: foss
>
> The box spins up and does much of the setup but always fails here:
>
> ubuntu-server-1404-x64 20:11:30$ wget -O /tmp/puppet.deb
> http://apt.puppetlabs.com/puppetlabs-release-.deb
>   --2015-12-01 12:11:29--
> http://apt.puppetlabs.com/puppetlabs-release-.deb
>   Resolving apt.puppetlabs.com (apt.puppetlabs.com)...   192.155.89.90  ,
>   2600:3c03::f03c:91ff:fedb:6b1d
>   Connecting to apt.puppetlabs.com (apt.puppetlabs.com)|192.155.89.90|:80...
>   connected.
>   HTTP request sent, awaiting response...   404 Not Found
>   2015-12-01 12:11:29 ERROR 404: Not Found.
>
> For some reason even switching up the box used it always fails to get the
> release name and complete the URL property. Any idea why this is missing?
>
> --
> 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/3d8bad03-3e5b-494b-823d-a40e136c442f%40googlegroups.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/CAAqoMCYkAA435bj1Zh4%2Bi%3D4d6500KfZofbXccunnDXVPV6V%2BAA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Puppet opensource releases et releases notes

2015-12-02 Thread Arnaud M
Hello all,

I was looking for a way to be warn about new puppet version and I can't 
find any RSS link or whatever that would help a lot.


So far I've found this 3 pages :

http://docs.puppetlabs.com/puppet/latest/reference/release_notes.html
http://docs.puppetlabs.com/puppet/latest/reference/about_agent.html
http://docs.puppetlabs.com/puppetserver/2.2/release_notes.html#new-requirements


Am I missing a place where everything is clearly published?

Thanks

ArnaudM

-- 
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/bb7b5d16-77a2-4015-ba2e-ee1bec6bbfb1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] puppet open-source and Mac client

2015-12-02 Thread John Oliver
I have puppet-server 3.8.3 and am working on making that go with a Mac 
running 10.10.5 "Mavericks".  I installed puppet-agent-1.2.6-1.osx10.10.dmg 
 When I run 'puppet agent --test' on the Mac, I get:

Error: Could not request certificate: Error 400 on SERVER: The environment 
must be purely alphanumeric, not 'puppet-ca'

Googling that puzzler quickly suggested a client version of puppet that's 
higher than the master.  I had looked into this before, 
and https://docs.puppetlabs.com/puppet/latest/reference/about_agent.html 
suggests that there is no puppet agent that will work with open source 
puppet.  Please tell me that isn't the case!

-- 
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/6d55911f-2fdb-4f80-a69d-0f9f6890%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: Puppet opensource releases et releases notes

2015-12-02 Thread Stefan Heijmans
Hi,
 
What about the Google Group; Puppet Announce 
 
Stefan

-- 
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/809e744d-64ea-443a-91a6-9f2a7b00b7bb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Re: Puppet 4: default value of a parameter in a module and dependency

2015-12-02 Thread jcbollinger


On Tuesday, December 1, 2015 at 11:26:15 PM UTC-6, François Lafont wrote:
 

> No, no. You can see 
> http://puppet-on-the-edge.blogspot.fr/2015/01/puppet-40-data-in-modules-and.html
>  
> With puppet 4, the "data philosophy" has changed. 
>
>
I think "the data philosophy has changed" is a bit of an overreach.  Two 
things relevant to the current discussion have happened:

   1. Puppet has adopted a data-in-modules mechanism into the core.  This 
   has been long desired, and was available -- in different form -- as a 
   third-party module for Puppet 3.  This, I already knew about.
   2. Puppet has added a mechanism to write custom functions in Puppet DSL, 
   including such functions as underpin the data-in-modules mechanism.  This, 
   I had overlooked.

None of that impacts my primary thesis, however.  It still is impossible to 
reliably predict what value a class parameter of an as-yet undeclared class 
would take if that class were declared later, by unspecified means.  You 
can determine what value Puppet would choose via automated data binding, 
but even supposing that yields a value at all -- it does not need to do -- 
you cannot, in general, be certain that automated data binding is the 
mechanism that ultimately will be used to set that parameter's value.  That 
is, you cannot, in general, predict what value a class parameter *will *take. 
If you are willing to ensure that the class is declared, however, then you 
can easily determine what value any of its parameters *does* take.

If you conceive a module to be in a position to control or even to know 
whether and how a class from a different module is declared, then that's a 
strong signal that you should combine or refactor your modules.  If you 
think one module has need for direct access to in-module data of a 
different module, then that is also a signal that you should combine or 
refactor.


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/66192e4b-b834-440a-a928-3398754f5a40%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Puppet 101: How to make it go?

2015-12-02 Thread John Oliver
Thanks, Morgan!  No, I had not thought to look under puppet 4.3 to find 
puppet 3.8 docs :-P

I have been working through the learning VM, and it has a GUI and has you 
install graphite.  Do those things exist with open-source puppet?

Once I get going, it's very possible that we'll want to go with PE, but 
procuring stuff is a real headache, which is why I'm starting with the 
open-source project.  being limited to 10 nodes would quickly kill any 
possibility of selling this to our management :-/


On Tuesday, December 1, 2015 at 2:10:14 PM UTC-8, Morgan Haskel wrote:
>
> John,
>
> Have you checked out 
> https://docs.puppetlabs.com/puppet/4.3/reference/quick_start.html? That 
> should all work with open source as far as I know.
>
>

-- 
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/05b86315-974b-43de-ade7-2c36b46bb78a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Puppet Agent on montavista Linux

2015-12-02 Thread Chetan Kumar
Hi,

I was planning to run Puppet Agent on a Montavista Linux. Anyone tried this 
?

Thanks
C

-- 
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/d6a354ce-cf16-4c8e-87d4-b27ea22372fa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Is there a way to read multiple hiera file from a datadir location?

2015-12-02 Thread Sans
Hi all,

Is there way to use multiple Hiera data-source yaml from a fixed location 
like: /etc/puppet/sites/clients/ ?

I see having something like this:

:hierarchy:
- "clients/*"
- default


doesn't really work for Hiera. The issues for me There gonna be 100s of 
.yaml in there and I don't want to over load my hiera.yaml with 100s of 
entries or edit that file every time we add new client's data. Or is there 
way to use RegEx name? I don't care in what order they are executed. How do 
I deal with this situation? Best!

-- 
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/64150920-abb5-4508-9c5e-7dddea97dd50%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Designing modules with long running tasks

2015-12-02 Thread Thomas Müller
I don't think puppet is a good fit for what you trie to do. Puppet is more 
about configuration and less for long running tasks.

I would recommend to write the list of files to be downloaded as a configfile 
for a cronjob which reads it and starts/restarts your service itself.

-Thomas

-- 
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/23d6207b-7c46-4cf6-9ce1-fa5576aa8efc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] puppet open-source and Mac client

2015-12-02 Thread Martin Alfke
Hi,

On 02 Dec 2015, at 17:12, John Oliver  wrote:

> I have puppet-server 3.8.3 and am working on making that go with a Mac 
> running 10.10.5 "Mavericks".  I installed puppet-agent-1.2.6-1.osx10.10.dmg  
> When I run 'puppet agent --test' on the Mac, I get:

Puppet-agent is Puppet 4. You either need to install the same puppet agent 
version as the master or upgrade your master.
Installation notes for Puppet 3.8 on OS X can be found here:
https://docs.puppetlabs.com/puppet/3.8/reference/install_osx.html

Packages are here: 
http://downloads.puppetlabs.com/mac/?_ga=1.239383939.1830287848.1420469550

> 
> Error: Could not request certificate: Error 400 on SERVER: The environment 
> must be purely alphanumeric, not 'puppet-ca'
> 
> Googling that puzzler quickly suggested a client version of puppet that's 
> higher than the master.  I had looked into this before, and 
> https://docs.puppetlabs.com/puppet/latest/reference/about_agent.html suggests 
> that there is no puppet agent that will work with open source puppet.  Please 
> tell me that isn't the case!
> 
> -- 
> 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/6d55911f-2fdb-4f80-a69d-0f9f6890%40googlegroups.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/C431B133-8A24-4298-A5F5-2D7AA9C2F328%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Beaker does not install puppet in Ubuntu boxes

2015-12-02 Thread 'Danny Roberts' via Puppet Users
Removing 'server' fixed it, thanks!

On 2 December 2015 at 16:33, Khoury Brazil  wrote:

> I think this is the problem:
> >platform: ubuntu-server-14.04-amd64
>
> platform gets split into 3:
> @variant, version, @arch = self.split('-', 3)
> From that you get:
> ["ubuntu", "server", "14.04-amd64"]
> When it tries to evaluate the hash it has of platform version codes using
> version ('server') it gets back nil. It's expecting something like '14.04'
> there instead.
>
> tldr: Your platform string probably shouldn't have '-server' in it.
>
> On Tue, Dec 1, 2015 at 12:26 PM Danny Roberts <
> dannyroberts.perso...@googlemail.com> wrote:
>
>> When running acceptance tests with an Ubuntu box with the following
>> config:
>>
>> HOSTS:
>>   ubuntu-server-1404-x64:
>> roles:
>>   - master
>> platform: ubuntu-server-14.04-amd64
>> box: puppetlabs/ubuntu-14.04-64-nocm
>> hypervisor: vagrant
>>
>> CONFIG:
>>   log_level: verbose
>>   type: foss
>>
>> The box spins up and does much of the setup but always fails here:
>>
>> ubuntu-server-1404-x64 20:11:30$ wget -O /tmp/puppet.deb
>> http://apt.puppetlabs.com/puppetlabs-release-.deb
>>   --2015-12-01 12:11:29--
>> http://apt.puppetlabs.com/puppetlabs-release-.deb
>>   Resolving apt.puppetlabs.com (apt.puppetlabs.com)...   192.155.89.90
>>  ,   2600:3c03::f03c:91ff:fedb:6b1d
>>   Connecting to apt.puppetlabs.com (apt.puppetlabs.com)|192.155.89.90|:80...
>>   connected.
>>   HTTP request sent, awaiting response...   404 Not Found
>>   2015-12-01 12:11:29 ERROR 404: Not Found.
>>
>> For some reason even switching up the box used it always fails to get the
>> release name and complete the URL property. Any idea why this is missing?
>>
>> --
>> 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/3d8bad03-3e5b-494b-823d-a40e136c442f%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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/A7UrwTRCzsU/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/CAAqoMCYkAA435bj1Zh4%2Bi%3D4d6500KfZofbXccunnDXVPV6V%2BAA%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Kind Regards
Danny R

Website: http://danny-roberts.info/

-- 
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/CAMAFytk6-uzU2PZwUa89vvpX0Hwb%2BO3omht7H%2BsgoXrY7pNSxw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Is there a way to read multiple hiera file from a datadir location?

2015-12-02 Thread Henrik Lindberg

On 2015-02-12 19:09, Sans wrote:

Hi all,

Is there way to use multiple Hiera **data-source yaml from a fixed
location like:/etc/puppet/sites/clients/ ?



No.


I see having something like this:

:hierarchy:
 - "clients/*"
 - default


doesn't really work for Hiera. The issues for me There gonna be 100s of
.yaml in there and I don't want to over load my hiera.yaml with 100s of
entries or edit that file every time we add new client's data. Or is
there way to use RegEx name? I don't care in what order they are
executed. How do I deal with this situation? Best!



Add a build step that concatenates/combines all of your data files into 
one file. Reference that file in your hiera.yaml.


Alernatively write your own backend that loads all of the files and 
merges the result.


- 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/64150920-abb5-4508-9c5e-7dddea97dd50%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/n3ns3n%24lqs%241%40ger.gmane.org.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Re: Puppet 4: default value of a parameter in a module and dependency

2015-12-02 Thread Henrik Lindberg

On 2015-02-12 6:21, Francois Lafont wrote:

Hi Henrik,

On 30/11/2015 19:12, Henrik Lindberg wrote:


In addition to writing the function, a module can opt in to using this data 
functions by adding a configuration in its module metadata.


Err... can you explain a little? I don't see what it is.


This is all part of the 4.x data in modules / lookup feature.

In Puppet 4.3.0 we also added the ability to use hiera data in modules.


Same remark: can you explain a little?


Start here: 
https://docs.puppetlabs.com/puppet/4.3/reference/release_notes.html#new-feature-puppet-lookup





Do you know if this bug will be resolved soon?
https://tickets.puppetlabs.com/browse/PUP-5209



We seemed to have dropped the ball on that one and it did not show up on 
our board. We will take a look at it. Thanks for reporting back on the 
ticket.



Because it seems to me that my goal in this thread is impossible with this bug, 
no?

Francois Lafont




--

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/n3nst9%247eo%241%40ger.gmane.org.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Announce: PuppetDB 3.2.2 is available!

2015-12-02 Thread Rob Browning

PuppetDB 3.2.2 - December 2, 2015

PuppetDB 3.2.2 Downloads


Available in native package format as part of Puppet Collection 1
(PC1). More information on the PC1 repositories is available here:
http://docs.puppetlabs.com/puppet/4.2/reference/install_linux.html#install-a-release-package-to-enable-puppet-labs-package-repositories

Binary tarball: http://downloads.puppetlabs.com/puppetdb/

Source: http://github.com/puppetlabs/puppetdb

Please report feedback via the Puppet Labs tickets site, using an
affected PuppetDB version of 3.2.2:
https://tickets.puppetlabs.com/browse/PDB

Documentation: http://docs.puppetlabs.com/puppetdb/3.2/

Puppet module: http://forge.puppetlabs.com/puppetlabs/puppetdb

PuppetDB 3.2.2 Release Notes


PuppetDB 3.2.2 is a bugfix release that should improve query
performance for some fields, and changes ssl-setup to not depend on
the `puppet master` command.

Please see the release notes for further information:
https://docs.puppetlabs.com/puppetdb/3.2/release_notes.html

Contributors
---

Andrew Roetker, Ken Barber, Morgan Haskel, Rob Braden, Russell Mull,
Ryan Senior, Wayne Warren, and Wyatt Alt

-- 
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/87fuzkmplw.fsf%40yaga.corp.puppetlabs.net.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: Unit testing reference modules and best practices

2015-12-02 Thread Haani Niyaz
Hi Ben,

I am also looking for some reference material to better illustrate how to 
use rsepc puppet, a best practices of sorts to my team. Were you successful 
in finding some examples?

On Friday, 11 July 2014 10:29:32 UTC+10, Ben Sullivan wrote:
>
> Hi
>
> I'm looking for some reference modules to share with my team to illustrate 
> how to best use rspec-puppet to unit test Puppet DSL code.
>
> I'm going to go through the Puppet Enterprise supported modules as I 
> figured that was a reasonable place to start: 
> https://forge.puppetlabs.com/modules?supported=yes
>
> The team doesn't understand the value of rspec-puppet at present and I 
> need to articulate arguments to get some buy-in.  At the moment we rely on 
> long-running end to end tests which won't scale for us as our automation 
> codebase grows.
>
> Any tips/recommendations would be appreciated.
>
> Many thanks
>
> Ben
>

-- 
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/160e2715-f9fd-4c09-bbe2-9dd0f7c47efc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Re: puppet calling systemctl instead of /etc/init.d/xxx even when told to use debian provider

2015-12-02 Thread Ghislain

hi,

thanks for those great  insigth it is great to hear what leaded to this, 
yes testing systemctl is a good option, also if i can build a logic to 
change the "status" for each services based on the debian version it 
would be possible but this report the logic inside the pp for all 
services where i beleive it could be scaled in a easier way in the 
provider code :)



best regards,
Ghislain.



--
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/565EA6A5.5020809%40aqueos.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Re: Puppet 4: default value of a parameter in a module and dependency

2015-12-02 Thread jcbollinger


On Tuesday, December 1, 2015 at 8:50:12 AM UTC-6, Henrik Lindberg wrote:
>
> On 2015-30-11 16:09, jcbollinger wrote: 
> > 
> > 
> > On Sunday, November 29, 2015 at 10:09:20 PM UTC-6, François Lafont 
> wrote: 
> > 
> > Hi, 
> > 
> > I'm using Puppet 4 and I'm wondering if this (see below) is 
> possible. 
> > 
> > I have 2 Puppet modules, moda and modb. We can imagine that theses 
> > modules 
> > have just one class init.pp. 
> > 
> > 
> > 
> > "init.pp" is the name of a manifest file, not of a class.  Moreover, 
> > although it's poor form, such a manifest could contain definitions for 
> > more than one class.  Moreover, in 
> > 
> > The class ::moda has a parameter "param" with 
> > the default value defined in the code of "./moda/functions/data.pp". 
> > 
> > 
> > 
> > "./moda/functions/data.pp" appears to be the name of another manifest 
> > file.  I suppose it's instead supposed to be a Ruby (.rb) file defining 
> > a custom function, and although I can speculate based on its name what 
> > it might do, the details matter, and you have not provided them. 
> > 
>
> In Puppet 4.x you can have functions written in the Puppet Language. 
> Those reside under /functions/.pp 
>
>

Ah! This, I had somehow missed.   Thanks, Henrik.


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/8176fb87-e64c-4b7d-b73f-d197abc37723%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] puppet open-source and Mac client

2015-12-02 Thread John Oliver
Thanks.

So, the *latest* latest?  Or is there another page saying not to use 
version X of Y with version Q of Z?

I had seen that page, but it doesn't make clear that it's an *agent*... I 
took "install puppet" to mean just that.


On Wednesday, December 2, 2015 at 12:41:06 PM UTC-8, Martin Alfke wrote:
>
> Hi, 
>
> On 02 Dec 2015, at 17:12, John Oliver  
> wrote: 
>
> > I have puppet-server 3.8.3 and am working on making that go with a Mac 
> running 10.10.5 "Mavericks".  I installed puppet-agent-1.2.6-1.osx10.10.dmg 
>  When I run 'puppet agent --test' on the Mac, I get: 
>
> Puppet-agent is Puppet 4. You either need to install the same puppet agent 
> version as the master or upgrade your master. 
> Installation notes for Puppet 3.8 on OS X can be found here: 
> https://docs.puppetlabs.com/puppet/3.8/reference/install_osx.html 
>
> Packages are here: 
> http://downloads.puppetlabs.com/mac/?_ga=1.239383939.1830287848.1420469550 
>
 

-- 
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/3623d813-0eef-4f4b-b131-b945794f7bde%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.