Re: [Puppet Users] function not loaded when .pp file runs through command line >> Error: Unknown function:

2016-11-08 Thread bodik
On 11/09/2016 01:08 AM, Peter Huene wrote: > Hi bodik, > > On Tue, Nov 8, 2016 at 2:03 AM, bodik everything works fine, but using .pp file containing exactly the same > > puppet apply tests/class.pp > > results in "Unknown function:" as shown below,

Re: [Puppet Users] function not loaded when .pp file runs through command line >> Error: Unknown function:

2016-11-08 Thread Peter Huene
Hi bodik, On Tue, Nov 8, 2016 at 2:03 AM, bodik wrote: > hello, > > I'm getting into troubles while using rake (not important) for --noop > tests during modules development. Using > > puppet apply -e 'include class' > > everything works fine, but using .pp file

Re: [Puppet Users] Re: Encrypting password with custom provider

2016-11-08 Thread Ziwi
Nevermind the above, I had wrong data { } - it contained hash of hashes, instead of hash, and I was referencing wrong variable in the ERB file. Actually, this works fine. I think so at least, because I am running puppet apply on the same machine and I'm not sure if the template actually renders

Re: [Puppet Users] Re: Encrypting password with custom provider

2016-11-08 Thread Ziwi
Thomas, Thanks again for the follow up. I think I will try to use datacat module. However with the following configuration: datacat { "/tmp/my.conf": template => "my_module/properties.erb", } datacat_fragment { 'properties fragment': target => '/tmp/my.conf', data => { props => { ¦

Re: [Puppet Users] Re: Encrypting password with custom provider

2016-11-08 Thread Thomas Mueller
Am 08.11.2016 um 20:10 schrieb Ziwi: > Thanks for the link, I will definitely look at this. If this actually > renders on agent it could come in handy. > > However different outputs of the encryption command are still a > problem, as there should be some kind of: onlyif => > decrypt('old_value')

[Puppet Users] 2016.4.0 ubuntu puppet enterprise install

2016-11-08 Thread Jay Benner
seems this command is failing and I don't know how I can make "puppet enterprise" be a valid subcommand.: 2016-11-08 14:32:21,008 Running command: /opt/puppetlabs/puppet/bin/puppet enterprise configure --debug --detailed-exitcodes --modulepath /opt/puppetlabs/server/data/enterprise/modules

Re: [Puppet Users] PuppetConf talk recommendations?

2016-11-08 Thread Rich Burroughs
That's awesome, thanks :) Rich On Tue, Nov 8, 2016 at 11:19 AM, James Pryor wrote: > Rich, > I wrote up some notes and a PuppetConf re-cap at: > https://github.com/jjpryor/rpug-2016-11 > for the Raleigh Puppet User Group >

Re: [Puppet Users] PuppetConf talk recommendations?

2016-11-08 Thread James Pryor
Rich, I wrote up some notes and a PuppetConf re-cap at: https://github.com/jjpryor/rpug-2016-11 for the Raleigh Puppet User Group https://www.meetup.com/Raleigh-Puppet-User-Group/ Thanks, James Talks that I liked: - "Enjoying the Journey from Puppet 3.x to Puppet 4.x" - Rob Nelson -

[Puppet Users] Re: Encrypting password with custom provider

2016-11-08 Thread Ziwi
Thanks for the link, I will definitely look at this. If this actually renders on agent it could come in handy. However different outputs of the encryption command are still a problem, as there should be some kind of: onlyif => decrypt('old_value') != plain_password functionality for this. If

[Puppet Users] PuppetConf talk recommendations?

2016-11-08 Thread Rich Burroughs
You may have already heard but the PuppetConf videos are posted: https://www.youtube.com/playlist?list=PLV86BgbREluVjwwt-9UL8u2Uy8xnzpIqa I wasn't able to attend and I'm wondering if there were talks people really like that they'd recommend watching :) Rich -- You received this message

[Puppet Users] Encrypting password with custom provider

2016-11-08 Thread Thomas Müller
You could use the datacat module. It runs the template on the client instead of on the puppet master. https://forge.puppet.com/richardc/datacat/types -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop

[Puppet Users] Encrypting password with custom provider

2016-11-08 Thread Ziwi
Hey guys, I've got an issue, which I think is solvable by using custom types/provider but I'm not very familiar with ruby yet, so I'm in very much need of your help. The problem: I have a file resource which uses a template: file { "${config_dir}/foo": ¦ ensure => 'file', ¦ content =>

[Puppet Users] module puppetlabs/motd question?

2016-11-08 Thread Jason McMahan
I am new to puppet, and git but I had a question surrounding the module puppetlabs/motd When I use this module for my windows servers the spacing is messed up and the motd looks jagged per say. * hello world * (this should have like 4 trailing white spaces for example)

[Puppet Users] Re: Why i cant change my custom types?

2016-11-08 Thread David Schmitt
Another thing you might want to try is "puppet generate type", a experimental feature of puppet 4.6 onwards: https://docs.puppet.com/puppet/4.8/reference/environment_isolation.html Regards, David On Tuesday, November 8, 2016 at 12:31:07 PM UTC, Akai wrote: > > Hello David, > > thank you for

[Puppet Users] function not loaded when .pp file runs through command line >> Error: Unknown function:

2016-11-08 Thread bodik
hello, I'm getting into troubles while using rake (not important) for --noop tests during modules development. Using puppet apply -e 'include class' everything works fine, but using .pp file containing exactly the same puppet apply tests/class.pp results in "Unknown function:"

Re: [Puppet Users] development workflow

2016-11-08 Thread Rob Nelson
Code Manager is PE only, so if you're using opensource then r10k it is. I still use r10k with PE, though, because CM is missing the equivalent of 'r10k deploy module'. Both work very well. Rob Nelson rnels...@gmail.com On Mon, Nov 7, 2016 at 4:33 AM, Robert wrote: > Dear

[Puppet Users] Re: Why i cant change my custom types?

2016-11-08 Thread Akai
Hello David, thank you for this explanation. Everything could be so simple. Now i understand :-) ... Best Regards -- 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

[Puppet Users] Re: Why i cant change my custom types?

2016-11-08 Thread David Schmitt
On Tuesday, November 8, 2016 at 10:58:58 AM UTC, Akai wrote: > It cant be the right way, to always reset everythng on a older snapshot > or? Why the puppetmaster "rembers" the custom_type definition and does not > accept changes? How i handle this? > Since custom types are native ruby code,

[Puppet Users] Why i cant change my custom types?

2016-11-08 Thread Akai
Hello Together, i have a strange behaviour wich i cant explain myself. I want to create a new custom type (and later a provider) who can configure our own created software. For this, i createt a test module and put there everything for my development. It looks like this . ├── lib │ └──

Re: [Puppet Users] development workflow

2016-11-08 Thread Craig Dunn
On Mon, Nov 7, 2016 at 2:47 PM, R.I.Pienaar wrote: > > Anyway, if others have experiences and suggestions, they're welcome. > > > Check out gogs.io. Doesn't have CI built in but it's so light and easy to > deploy and run it's well worth a consideration over gitlab > > > Gogs is