Re: [Puppet Users] lock *nix user accounts with no password

2014-12-19 Thread Lowe Schmidt
You should probably use PAM to enforce password complexity instead of using
a homegrown bash script.

--
Lowe Schmidt | +46 723 867 157

On 16 December 2014 at 11:54, Brian Keating  wrote:
>
> Hi,
> Our security policy states we lock *nix accounts that have no passwords.
> I wrote a bash script that does the job but my onlyif statement isn't
> working.  I want it to check and only trigger when true - not every time.
> I'm new to puppet trying to learn how to write 'onlyif' statements - can
> someone point me in the right direction?
>
> Here is manifest - the onlyif statement and the bash
> lock-out-no-password-account.sh script are working in isolation.  Augeas
> would be ideal to handle this kind of task but I have yet to find one to
> suit.  Help & guidance is appreciated.
>
> exec { 'lock-accout-no-pass' :
> command =>
> "/admin/scripts/lock-out-no-password-account.sh",
> onlyif => "/bin/cat /etc/shadow | /bin/awk -F : '{ print
> $2 }' | /bin/grep ^$ | tail -1 | /bin/grep -c ^$"
> }
>
> #!/bin/bash
> #
> # Lock out active accounts with no password
>
> for NAME in `awk -F: '( $2 == "" ) { print $1 }' /etc/shadow`; do
> MyUID=`id -u $NAME`
> if [ $MyUID -gt 500 -a $NAME != 'root' ]; then
> usermod -L -s /dev/null $NAME
> fi
> done
>
> Thanks,
> Brian.
>
> --
> 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/3dbb467c-6f00-4389-b627-46133fdafb34%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/3dbb467c-6f00-4389-b627-46133fdafb34%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAC-wWcTAGEr5CWk9WtxSgPuTix2UZxmdtaVm1%2BELUVbiJT4qxQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] setting folders to different permissions

2014-12-19 Thread Lowe Schmidt
That won't help, because if "other" cant run execute on /home they can cd
into directories below /home.

--
Lowe Schmidt | +46 723 867 157

On 18 December 2014 at 16:35, Brian Keating  wrote:
>
> Hi,
> I want to set /home dir to chmod 750 but all dirs included to 755.  Anyone
> have a solution?
> Thanks,
> Brian.
>
> --
> 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/1b8dabb1-64a4-4e9b-9385-a091278f2d33%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/1b8dabb1-64a4-4e9b-9385-a091278f2d33%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAC-wWcSXFmX1kOfn5-JWp9w4jz8rveehVZ6y6p0uvS2RTxBxDA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Puppet enterprise 2016.1.1 installation failing with following error

2016-04-28 Thread Lowe Schmidt
On 27 April 2016 at 21:40, Ali  wrote:

> ^[[1;31mError: Failed to apply catalog: Could not parse line "/bin/grep
> \"^+:\" /etc/passwd 1>>/var/log/passwd_check.log" at root:14^[[0m
>

What is in the log file?


--
Lowe Schmidt | +46 723 867 157

-- 
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/CAC-wWcT2M10HKdFm%2BbCApwBHOQ8uyBPuzwMiZwD4w9%2BBpYS1Jw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Erb template

2016-05-02 Thread Lowe Schmidt
It is probably better two generate the child*.conf from your puppet code
rather than having an erb template generate another file (I am not even
sure that works).

What version of puppet are you running and could you show us some code?

--
Lowe Schmidt | +46 723 867 157

On 2 May 2016 at 15:53, Manoj Muraleedharan  wrote:

> I have two erb template, one for main config file and another for child
> process config file. I need to want to create config file for 3 child
> process config file inside main erb template by calling another erb
> template inside. these 3 config files has to be three different name.
>
> I need the following config file create in my puppet agent
> /etc/app/main.conf
> /etc/app/child1.conf
> /etc/app/child2.conf
> /etc/app/child3.conf
>
> I have two erb file in my modeule main.erb and child.erb
>
> I want to call only the main.erb and when processing main.erb i need to
> create the above child.conf file based on child.erb
>
> --
> 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/8d13593d-3117-44bf-9132-e4d4e084341b%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/8d13593d-3117-44bf-9132-e4d4e084341b%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAC-wWcTqZazBzEM3H88j%2Bb3ZqmCD95_%2B9bMGwq%3Dv5%2B1cSYQXGw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] pre-requisites for setting up Puppet

2016-05-11 Thread Lowe Schmidt
https://docs.puppet.com/puppet/latest/reference/install_pre.html#check-os-versions-and-system-requirements

--
Lowe Schmidt | +46 723 867 157

On 11 May 2016 at 03:03, Raj  wrote:

> Hello All,
>
> Am new to Puppet could anyone send me the pre-requisites for setting up
> Puppet?
>
>
>
> Thank you in advance.
>
>
> Regards,
>
> Rajesh.
>
>
> --
> 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/a32bd01e-0a5b-47dd-85c2-79a6c58033d0%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/a32bd01e-0a5b-47dd-85c2-79a6c58033d0%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAC-wWcRJcqr%3DZSfQs0apenUmjkoEDT4w2bgMx4Lm2fNq1L9zGw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Message from application: cannot load such file — puppet/util/command_line (LoadError)

2016-05-19 Thread Lowe Schmidt
First off. As of Puppet 4 is the server part written in Clojure and runs on
the JVM, the parts that are still Ruby are also ran on the JVM with JRuby.

Secondly is the package an all in one package, so no third party or system
ruby should be running.

You should not need Apache or Passenger, just go to the root of the puppet
installation (i believe it is /opt/puppet/ by default) and run
./bin/puppetserver and you should be set.

--
Lowe Schmidt | +46 723 867 157

On 18 May 2016 at 13:39, San  wrote:

> Hi,
>
>
> I have configured puppet with passenger (using -
> https://docs.puppet.com/guides/passenger.html AND
> http://www.olindata.com/blog/2014/09/setup-puppet-master-passenger-and-apache-centos
>  ).
>
>
> [root@a-puppet-03 ~]# puppet --version
>
> 4.4.2
>
> [root@a-puppet-03 ~]# ruby --version
>
> ruby 2.1.8p440 (2015-12-16 revision 53160) [x86_64-linux]
>
> [root@a-puppet-03 ~]# passenger --version
>
> Phusion Passenger 5.0.28
>
> [root@a-puppet-03 ~]# cat /etc/centos-release
>
> CentOS release 6.7 (Final)
>
> [root@a-puppet-03 ~]#
>
>
> Things are fine till the last step, when puppet agent is run, there are
> lots of error. Mainly LoadError.
>
>
> puppet agent -t
>
>
> [ 2016-05-18 04:06:41.8270 19959/7f95efba2700
> age/Cor/Con/CheckoutSession.cpp:285 ]: [Client 1-100] Cannot checkout
> session because a spawning error occurred. The identifier of the error is
> ba45fc42. Please see earlier logs for details about the error.
>
> App 25759 stdout:
>
> App 25759 stdout:
>
> [ 2016-05-18 04:06:42.2164 19959/7f95ee7a0700
> age/Cor/App/Implementation.cpp:304 ]: Could not spawn process for
> application /usr/share/puppet/rack/puppetmasterd: An error occurred while
> starting up the preloader.
>
>   Error ID: d1069d73
>
>   Error details saved to: /tmp/passenger-error-SqIO1Z.html
>
>   *Message from application: cannot load such file --
> puppet/util/command_line (LoadError)*
>
>   /usr/local/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in
> `require'
>
>   /usr/local/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in
> `require'
>
>   *config.ru:41:in `block in *'
>
>   /usr/local/lib/ruby/gems/2.1.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in
> `instance_eval'
>
>   /usr/local/lib/ruby/gems/2.1.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in
> `initialize'
>
>   config.ru:1:in `new'
>
>   config.ru:1:in `'
>
>
> /usr/local/lib/ruby/gems/2.1.0/gems/passenger-5.0.28/src/helper-scripts/rack-preloader.rb:110:in
> `eval'
>
>
> /usr/local/lib/ruby/gems/2.1.0/gems/passenger-5.0.28/src/helper-scripts/rack-preloader.rb:110:in
> `preload_app'
>
>
> /usr/local/lib/ruby/gems/2.1.0/gems/passenger-5.0.28/src/helper-scripts/rack-preloader.rb:156:in
> `'
>
>
> /usr/local/lib/ruby/gems/2.1.0/gems/passenger-5.0.28/src/helper-scripts/rack-preloader.rb:30:in
> `'
>
>
> /usr/local/lib/ruby/gems/2.1.0/gems/passenger-5.0.28/src/helper-scripts/rack-preloader.rb:29:in
> `'
>
>
> Please can someone help.. 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/4adaf1f5-792e-4af8-acab-e945b19cd427%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/4adaf1f5-792e-4af8-acab-e945b19cd427%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAC-wWcR%3DqFvJ47q1qa1tzs64zOSH8VQgXVj_4E2NM1XgcQKWFA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users]

2016-05-29 Thread Lowe Schmidt
On 28 May 2016 at 13:22, nimmani Santhosh 
wrote:

> "The storage control blocks were destroyed"
>

the reverse dns entry can be wrong. you'll find a bunch of references to
gettaddrinfo and/or puppet if you google that exact phrase.

--
Lowe Schmidt | +46 723 867 157

-- 
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/CAC-wWcRRKVmbywfsm6YA7%3Dqrt7ppzhJLYXd9YNDiFd1%3DuMmkCA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Puppet 4.5 and git & R10K

2016-05-31 Thread Lowe Schmidt
Have a look over here: https://github.com/puppetlabs/r10k

--
Lowe Schmidt | +46 723 867 157

On 31 May 2016 at 08:40, Alex Samad  wrote:

> Hi
>
> New install, I am doing this on Centos 6.x
> I have installed the repo RPM
>
> I believe this is PC1 repo
>
>
> yum --disablerepo '*' --enablerepo puppetlabs-pc1 list | grep
> puppetlabs-pc1
> puppet-agent.x86_64  1.5.0-1.el6
>  @puppetlabs-pc1
> puppetdb.noarch  4.1.0-1.el6
>  @puppetlabs-pc1
> puppetdb-termini.noarch  4.1.0-1.el6
>  @puppetlabs-pc1
> puppetserver.noarch  2.4.0-1.el6
>  @puppetlabs-pc1
> puppet-client-tools.x86_64   1.0.0-1.el6
>  puppetlabs-pc1
> puppetdb-terminus.noarch 3-1.el6
>  puppetlabs-pc1
>
> I believe I have installed puppet , server , db and agent.
>
> But I can't find r10k
>
> rpm -qa | grep puppet
> puppetdb-4.1.0-1.el6.noarch
> puppet-agent-1.5.0-1.el6.x86_64
> puppetserver-2.4.0-1.el6.noarch
> puppetdb-termini-4.1.0-1.el6.noarch
> puppetlabs-release-pc1-1.0.0-2.el6.noarch
>
> I was following Rob's blog for puppet r10K + git and couldn't find
>  /etc/r10k.yaml
>
> so how do I install r10k :)
>
> --
> 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/672db58c-e03b-4e60-9003-0afce7b37af8%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/672db58c-e03b-4e60-9003-0afce7b37af8%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAC-wWcTdxcbr%3D03FbpC8zkEcgkLDGoCr2q4ac4W-Gzbrf%2BUU%3DA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Re: not able to sign the certificate of puppet master

2016-06-03 Thread Lowe Schmidt
Vivek, the solution is already in this thread. Read jcbollingers answer

--
Lowe Schmidt | +46 723 867 157

On 3 June 2016 at 09:25, Vivek Mishra  wrote:

> Hi John,
>
> I am facing a similar type of error. Can you help me.
>
> sudo puppet agent -tWarning: Unable to fetch my node definition, but the
> agent run will continue:Warning: getaddrinfo: Name or service not knownInfo:
> Retrieving pluginfactsError: /File[/var/lib/puppet/facts.d]: Failed to
> generate additional resources using 'eval_generate': getaddrinfo: Name or
> service not knownError: /File[/var/lib/puppet/facts.d]: Could not
> evaluate: Could not retrieve file metadata for 
> puppet://puppet1-puppet-master/pluginfacts:
> getaddrinfo: Name or service not knownInfo: Retrieving pluginError:
> /File[/var/lib/puppet/lib]: Failed to generate additional resources using
> 'eval_generate': getaddrinfo: Name or service not knownError:
> /File[/var/lib/puppet/lib]: Could not evaluate: Could not retrieve file
> metadata for puppet://puppet1-puppet-master/plugins: getaddrinfo: Name or
> service not knownError: Could not retrieve catalog from remote server:
> getaddrinfo: Name or service not knownWarning: Not using cache on failed
> catalogError: Could not retrieve catalog; skipping runError: Could not
> send report: getaddrinfo: Name or service not known
>
>
> On Wednesday, September 3, 2014 at 11:22:58 PM UTC+5:30, jcbollinger wrote:
>
>>
>>
>> On Tuesday, September 2, 2014 8:55:15 AM UTC-5, Spriya wrote:
>>>
>>> Hi,
>>>
>>> I installed puppet using open source. when i tryied to run puppet agent
>>> -t it is throwing me error.
>>>
>>> puppet agent -t
>>> Warning: Unable to fetch my node definition, but the agent run will
>>> continue:
>>> Warning: getaddrinfo: Name or service not known
>>> Info: Retrieving pluginfacts
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> *Error: /File[/var/lib/puppet/facts.d]: Failed to generate additional
>>> resources using 'eval_generate': getaddrinfo: Name or service not
>>> knownError: /File[/var/lib/puppet/facts.d]: Could not evaluate: Could not
>>> retrieve file metadata for puppet://puppet/pluginfacts: getaddrinfo: Name
>>> or service not knownWrapped exception:getaddrinfo: Name or service not
>>> knownInfo: Retrieving pluginError: /File[/var/lib/puppet/lib]: Failed to
>>> generate additional resources using 'eval_generate': getaddrinfo: Name or
>>> service not knownError: /File[/var/lib/puppet/lib]: Could not evaluate:
>>> Could not retrieve file metadata for puppet://puppet/plugins: getaddrinfo:
>>> Name or service not knownWrapped exception:getaddrinfo: Name or service not
>>> known*
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> *[main]# The Puppet log directory.# The default value is
>>> '$vardir/log'.logdir = /var/log/puppet# Where Puppet PID files are
>>> kept.# The default value is '$vardir/run'.rundir =
>>> /var/run/puppet# Where SSL certificates are kept.# The default
>>> value is '$confdir/ssl'.ssldir = $vardir/ssl[agent]# The file in
>>> which puppetd stores a list of the classes# associated with the
>>> retrieved configuratiion.  Can be loaded in# the separate ``puppet``
>>> executable using the ``--loadclasses``# option.# The default value
>>> is '$confdir/classes.txt'.classfile = $vardir/classes.txt# Where
>>> puppetd caches the local configuration.  An# extension indicating the
>>> cache format is added automatically.# The default value is
>>> '$confdir/localconfig'.localconfig =
>>> $vardir/localconfig[master] certname = hostname*
>>>
>>>
>>> please help me
>>>
>>>
>>
>> The agent does not know the correct hostname of the master.  It is trying
>> to look it up via the default name, 'puppet,' but the system's resolver
>> does not find anything by that name.  Add a
>>
>> server = 
>>
>> to the [agent] section of your puppet.conf.
>>
>>
>> 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/fc097b9a-3028-4651-aca1-ac2eae32056a%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/fc097b9a-3028-4651-aca1-ac2eae32056a%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> 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/CAC-wWcTiWC6w8gy55yybj5a2o3LGEfqkrUJYvxaJ67NpLMvQiw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class

2016-06-05 Thread Lowe Schmidt
Could you show us the node classification please.

--
Lowe Schmidt | +46 723 867 157

On 5 June 2016 at 12:33, Luke Tinker  wrote:

> Hi Everyone,
>
> I have some what exhausted my current readings from puppets documentation
> and presume I'm either misunderstanding something or I'm barking up the
> wrong tree...
> currently i have modified the site.pp file to include apache just as a
> test to see if my environment is working,
> r10k has made two environments both with puppetlabs apache module,
> however when doing a puppet agent -t run i get 'Error: Could not retrieve
> catalog from remote server: Error 400 on SERVER: Could not find class
> apache for server01 on node server01'
> from my understanding of this error, it is due to the module path
> controlled by r10k not being loaded, resulting as fast puppet is concerned
> it doesn't know what that module is.
> I ran 'puppet module list' and got the following.
> /etc/puppet/environments/production/modules
> ├── abrader-gms (v1.0.2)
> ├── darshan-test_module (v0.1.0)
> ├── glarizza-osx_management (v0.2.1)
> ├── glarizza-property_list_key (v0.2.1)
> ├── maestrodev-ssh_keygen (v1.3.1)
> ├── puppetlabs-apache (v1.10.0)
> ├── puppetlabs-concat (v2.1.0)
> ├── puppetlabs-firewall (v1.8.1)
> ├── puppetlabs-inifile (v1.5.0)
> ├── puppetlabs-ntp (v4.2.0)
> ├── puppetlabs-registry (v1.1.3)
> ├── puppetlabs-stdlib (v4.12.0)
> ├── puppetlabs-vcsrepo (v1.3.2)
> └── zack-r10k (v3.2.0)
>
> this does show the apache module so I'm unsure whats up here,
> the other thing i noticed is its not showing the modules in the
> development environment even though i would have thought that was using the
> same configuration,
> if anyone could shed some light on what I'm doing wrong or can point me in
> the right direction to getting modules to actually work when included,
> id be very grateful.
>
> further details on my setup are as follows,
>
> My environment consists of the following product versions.
>
> Puppet 3.8.7,
> r10k 2.2.2,
> hiera 1.3.4,
> facter 2.4.6,
>
>
> I have setup the following in the puppet.conf
>
> ini_setting { 'Configure environmentpath':
>   section => 'main',
>   setting => 'environmentpath',
>   value   => '$confdir/environments',
>
> ini_setting { 'Configure basemodulepath':
>   section => 'main',
>   setting => 'basemodulepath',
>   value   => '$confdir/modules:/opt/puppet/share/puppet/modules',
>
>
> each environment has the following in its environmnet.config file
>
> modulepath  = modules:site:$basemodulepath
>
>
> Regards,
> Luke
>
> --
> 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/f1616846-fd59-4528-809f-316f5efa13d1%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/f1616846-fd59-4528-809f-316f5efa13d1%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAC-wWcSzvyuX6wNNGfxi4aqsF%2BqQau6xsrJoufy1FL-ZBW%2BatA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] mysql - granting permissions twith puppet

2016-06-10 Thread Lowe Schmidt
Can you show us the code that you've written for this?
It looks quite straight forward when looking at this documentation
https://github.com/puppetlabs/puppetlabs-mysql#mysql_grant



--
Lowe Schmidt | +46 723 867 157

On 9 June 2016 at 23:19, kaustubh chaudhari  wrote:

> Hi All,
>
> I am trying to grant permissions to a user from multiple hosts. I am not
> able to achieve it with the default mysql module. Trying to avoid exec.
>
> This is what happens with i use mysql_grant resource. i am not able to
> identify it with a password. Due to which authentication fails.
>
>
> #
> select host, user, password from mysql.user;
>
>
>  10.20.1.210 | wikitwo |   |
> | 10.20.1.210 | wikione |   |
> | 10.20.1.220 | wikitwo | *D5F5E87658841ABF16379CF80D9B340303EC1BE9 |
> | 10.20.1.220 | wikione | *FE49E8ACAE9F986F5AD538EB6C92B92FF20152F1
>
>
> Offcourse  i can do it manually but is there way i can do this with puppet
> ?
>
> -Cheers
> Kaustubh
>
> --
> 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/43f9cf26-da43-44de-9ae9-876b1ebe387d%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/43f9cf26-da43-44de-9ae9-876b1ebe387d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAC-wWcSTeaidmsML3fvzcZXxnf9woOCvEL%2BjUBVq8O00%2BRw60w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Conrol class order of execution

2016-06-10 Thread Lowe Schmidt
You can use the relationships operators described here here
https://docs.puppet.com/puppet/latest/reference/lang_relationships.html


--
Lowe Schmidt | +46 723 867 157

On 10 June 2016 at 14:05, Harish Kothuri  wrote:

> Hi,
>
> I have several classes attached to a host and i want to control the
> execution order the classes.
>
> Ex: i have a class which collect some custom facts and i want to execute
> this class after completion of all the other classes.
>
> Thanks
>
> --
> 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/6b476924-b0ba-4d98-8551-41a8ce3b84fc%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/6b476924-b0ba-4d98-8551-41a8ce3b84fc%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAC-wWcRpjTGyhtmzGmaCgDF3ROyM%3DR9UGE5ox6VoFv-eLD5mpw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Conrol class order of execution

2016-06-10 Thread Lowe Schmidt
You can use the same operators to express dependencies between classes.

--
Lowe Schmidt | +46 723 867 157

On 10 June 2016 at 15:08, Harish Kothuri  wrote:

>
>
> On Friday, June 10, 2016 at 6:29:27 PM UTC+5:30, Harish Kothuri wrote:
>>
>> Hi,
>>
>> Thanks for your reply.
>>
>> I'm looking how to control the execution classes with different manifest
>> files. I'm aware and already controlling the order within the manifests.
>>
>> Thanks
>>
>> On Friday, June 10, 2016 at 6:16:18 PM UTC+5:30, Lowe Schmidt wrote:
>>>
>>> You can use the relationships operators described here here
>>> https://docs.puppet.com/puppet/latest/reference/lang_relationships.html
>>>
>>>
>>> --
>>> Lowe Schmidt | +46 723 867 157
>>>
>>> On 10 June 2016 at 14:05, Harish Kothuri  wrote:
>>>
>>>> Hi,
>>>>
>>>> I have several classes attached to a host and i want to control the
>>>> execution order the classes.
>>>>
>>>> Ex: i have a class which collect some custom facts and i want to
>>>> execute this class after completion of all the other classes.
>>>>
>>>> Thanks
>>>>
>>>> --
>>>> 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 view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/puppet-users/6b476924-b0ba-4d98-8551-41a8ce3b84fc%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/puppet-users/6b476924-b0ba-4d98-8551-41a8ce3b84fc%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> 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/f656446f-dd46-4057-95fe-66bb2f25e95d%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/f656446f-dd46-4057-95fe-66bb2f25e95d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> 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/CAC-wWcQyB%2Bjr0TMe_HqxAsgEdb3vo3%3Di9nq%2B_%3Di_2LtWXONkdA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Re: How to handle multiple modules requiring the same packages

2016-06-13 Thread Lowe Schmidt
It most likely has to do with creating the graph of dependencies, if we
have one Package['a'] with two branches of deps it can't guarantee that it
is acyclic.

--
Lowe Schmidt | +46 723 867 157

On 13 June 2016 at 12:21, Justin Rowles  wrote:

> At risk of bumping a now truly ancient thread (which I found because I
> have a 3rd party module and one of my own which both want to control a
> specific package), I don't see why puppet should complain when two
> identical (or at least non-contradictory) invocations of the same resource
> are found.
>
> --
> 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/7a6df4fc-3d34-442b-83d2-7f3c38015973%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/7a6df4fc-3d34-442b-83d2-7f3c38015973%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAC-wWcQpXxwKO1sZ1TWQWuJKRt8bstjAfzUi8iwq_7vwMFNaTA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Puppet Without Agent

2016-08-15 Thread Lowe Schmidt
Hey,

no, sorry. Puppet cant connect over ssh and run commands for you.
You can run the puppet agent without a puppet master, but then you need to
transfer the manifest to the machine you want to run on first.

There are other tools that lets you run commands or scripts over ssh like
fabric or ansible.

--
Lowe Schmidt | +46 723 867 157

On 15 August 2016 at 13:39,  wrote:

> Hi guys,
>
> I wonder if I can use the Puppet without agent. I only need the Puppet
> connect on some servers through SSH and run some command lines.
>
> Do you know if Puppet do this?
>
> Thanks a lot.
>
> Silvestri
>
> --
> 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/9c2c3a0d-045b-49a3-93bc-d4d13605d68e%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/9c2c3a0d-045b-49a3-93bc-d4d13605d68e%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAC-wWcTdKo4a%3Dq0X-Wi2WGt_yAYuCWre07j%2B_tWf%2BmOh6cRRrA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] variable scoping and erb templates

2016-08-15 Thread Lowe Schmidt
What version of Puppet are you running?

--
Lowe Schmidt | +46 723 867 157

On 15 August 2016 at 20:48, Matt Zagrabelny  wrote:

> Greetings!
>
> I am hitting a curious question and couldn't find an answer.
>
> I can access variables from other classes when using an erb template.
>
> Here is my minimal example:
>
> # puppet apply variable_scope_test.pp
> Notice: Compiled catalog for puppet.example.com in environment
> production in 0.12 seconds
> Notice: A variable from a different class:
> Notice: /Stage[main]/Scope_example::Sub_class/Notify[A variable from a
> different class: ]/message: defined 'message' as 'A variable from a
> different class: '
> Notice: Finished catalog run in 0.11 seconds
>
> # cd /tmp
> # head -n -0 variable_scope_test.pp template.erb template_output
> ==> variable_scope_test.pp <==
> class scope_example {
> $variable = "THIS IS A TEST!"
> include scope_example::sub_class
> }
>
> class scope_example::sub_class {
> file { '/tmp/template_output':
> content => template('/tmp/template.erb'),
> }
> notify { "A variable from a different class: $variable": }
> }
>
> node 'puppet.example.com' {
> include scope_example
> }
>
> ==> template.erb <==
> <%= @variable %>
>
> ==> template_output <==
> THIS IS A TEST!
>
> So why is the template allowed to see variables in other classes?
>
> I would have ad expected to need to use the variable like:
>
> <%= @scope_example::variable %>
>
> But it clearly works without adjusting its namespace.
>
> Thoughts?
>
> Thanks!
>
> -m
>
> --
> 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/CAOLfK3WBY9Hg%3DsaiHA2iAt4SRQjBX6XLsAJVj_
> qLGHJgjuugEg%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/CAC-wWcSmcHxSC5h169UOBiqq0HJTRtN7C4WfRbmnW02rHgx_OA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] X509 Cert management

2016-08-23 Thread Lowe Schmidt
There is also https://forge.puppet.com/puppetlabs/java_ks maybe it fits
better with what you want to do ?

--
Lowe Schmidt | +46 723 867 157

On 23 August 2016 at 07:58, Alex Samad  wrote:

> Hi
>
> I want to manage CA certs on Centos boxes and also in JVM's
>
> I found
> https://forge.puppet.com/camptocamp/openssl ... not realy what i want
>
> and
>
> https://forge.puppet.com/pcfens/ca_cert
>
> looks better.
>
> If I was to extend to manage java certs.
>
> this is my script
> /usr/java/jdk1.6.0_30/bin/keytool -keystore 
> /usr/java/jdk1.6.0_30/jre/lib/security/cacerts
> -importcert -noprompt -alias CA512 -file 
> /etc/pki/ca-trust/source/anchors/ca512.crt
>  -storepass changeit
>
> how would I write this into puppet ?
>
> I was thinking i can provide an array of locations where java is
> installed, then I can can find the keytool and the certstore.  But how to I
> run a command on the client machine.
>
> Better still how do I make sure it doesn't run all the time - every invoke
> ?
>
> A
>
> --
> 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/ee6cc9fd-1608-43fd-a809-d1ac64f0f45e%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/ee6cc9fd-1608-43fd-a809-d1ac64f0f45e%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAC-wWcRKkwa5z_2H27fE_Pw7CKDNme05mQeUdG2797BifMMncQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Can't connect agent to master using curl

2016-08-23 Thread Lowe Schmidt
Hey,

do you have DNS configured for your domain?


--
Lowe Schmidt | +46 723 867 157

On 23 August 2016 at 15:49, Freddy Paxton 
wrote:

> Hi,
> I recently installed Puppet Enterprise on my master using the guide
> provided on the Puppet website. First of all, it wanted me to navigate to
> https://:3000 to use the web installer, however, using my
> hostname to use the web installer didn't work. Instead I used the IP
> address and this did work. After completing the installation I then tried
> to connect an agent to my master. I used the curl script provided (curl -k
> https://:8140/packages/current/install.bash | sudo bash) and
> yet again the hostname failed to work, so I used the IP address again for
> this and a connection was made. But I was then presented with this message
> "curl failed to get 
> https://:8140/packages/2016.2.1/ubuntu-14.04-amd64.bash
>  The agent packages needed to support ubuntu-14.04-amd64 are not present on
> your master. To add them, apply the pe_repo::platform::ubuntu_1404_amd64
> class to your master node and then run Puppet. The required agent packages
> should be retrieved when puppet runs on the master, after which you can run
> the install.bash script again." I checked to see if
> 'pe_repo::platform::ubuntu_1404_amd64' was already applied on my master
> mode and it was (as I am using the same operating system for the master and
> the agent). I believe this is because the install.bash script uses the
> hostname to retrieve the classes from the master, and as I said before,
> this doesn't seem to want to work for me.
>
> This could well be an issue outside of Puppet, but any guidance on this
> would be appreciated, I can't seem to find any answers anywhere.
>
> Thanks
>
> --
> 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/d0255831-d0ae-4c2f-b29e-e801e755b9d3%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/d0255831-d0ae-4c2f-b29e-e801e755b9d3%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAC-wWcQ6wiAfFRaLX20xGwR0CgVSOCHaOgKoCLcKQ7Hy998ySw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] mysql package name

2016-08-29 Thread Lowe Schmidt
Have a look at the mysql module in the forge [0]. They solve it by having a
package_ensure parameter to the mysql::server class which is one of [
'present', 'latest, 'absent', 'x.y.z' ] where "x.y.z" is a version string.

[0] https://forge.puppet.com/puppetlabs/mysql#mysqlserver

--
Lowe Schmidt | +46 723 867 157

On 29 August 2016 at 06:42, Suresh Rajagopal  wrote:

> Hi,
>
> Puppet 3.4 with hieara.
>
> what is the best place to define package name within a module? package
> name varies based on package version.
>
> Thanks
> Suresh Rajagopal
>
> --
> 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/c66b04fb-2591-47da-af56-8f7eda59f964%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/c66b04fb-2591-47da-af56-8f7eda59f964%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAC-wWcT%2BD0BgoAa238y2xgn3dV5XByTSewJTk5hGOx4cR2GuQg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] A resource in class of post stage is getting executed before main stage.

2016-08-31 Thread Lowe Schmidt
Can you please show us the code for the class appneta::updatejs

--
Lowe Schmidt | +46 723 867 157

On 31 August 2016 at 18:38, Afroz Hussain  wrote:

> Hi All,
>
> I have a class with stage='post-10' that mean that has to executed after
> main stage but a resource of that class getting executed twice that is
> before main and after.
>
> example code as shown:
>
> appneta::nodejs (
>   $stage = "post-10",
>   )
>   {
>
> exec { 'install_agent':
> } ->
>  Appneta::Updatejs<| tag == 'run_first' |>
>   }
>
>
> Getting cyclic graph error as:
>
> Exec[install_agent] => Appneta::Updatejs[artifact1] => Stage[main] =>
> Stage[post-10] => Class[Appneta::Nodejs] => Exec[install_agent])
>
> Any help will be appreciated!!
>
> Thanks,
> Afroz
>
>
> --
> 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/05dcdc96-c2d8-4ae7-ba84-415399151295%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/05dcdc96-c2d8-4ae7-ba84-415399151295%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAC-wWcQOpAziSx-%3Dg-yCjjhK-x12Dw5MJZHzcnPsXCPkYFTTDA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Puppet 4.x, Puppetdb and sqlite

2016-09-30 Thread Lowe Schmidt
As I remember it, PuppetDB uses some specific functionality of postgres, so
it is a hard requirement.

--
Lowe Schmidt | +46 723 867 157

On 28 September 2016 at 21:24, Kong Eng  wrote:

>
> Hi,
>
> Anyone know if there's fix/way to use Puppet 4.x, puppetdb and sqlite. I
> hate to sping up puppetdb and progress db.
>
> --
> 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/0f7cf0c4-d465-4202-86cc-ccdcf2acce1b%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/0f7cf0c4-d465-4202-86cc-ccdcf2acce1b%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAC-wWcTaHbXT%2BDocsG54Rq07g9biJ9Hq-KB1ULYfmOf_D2kwuA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] puppet 3 to 2016.4

2016-10-12 Thread Lowe Schmidt
I dont't quite understand, could you rephrase the question?

--
Lowe Schmidt | +46 723 867 157

On 12 October 2016 at 20:06, kevin  wrote:

> What scripting language will they be using  for the moving much of Ruby2.0
> dependency or python
>
> On Wednesday, October 12, 2016 at 6:00:12 AM UTC-5, Rob Nelson wrote:
>>
>> Check out the docs at https://docs.puppet.com/upgrade/
>>
>> On Tuesday, October 11, 2016, kevin  wrote:
>>
>>> how does a enterprise work on the puppet moving on puppet 3 to 2016.4
>>>  can any one give me the complete description of all the steps included.
>>>
>>> --
>>> 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/ms
>>> gid/puppet-users/1b80712a-f7f5-4e42-b547-52148b82fb81%40googlegroups.com
>>> <https://groups.google.com/d/msgid/puppet-users/1b80712a-f7f5-4e42-b547-52148b82fb81%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>> --
>>
>> Rob Nelson
>> rnel...@gmail.com
>>
>> --
> 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/0f1d49d4-e924-4ef0-abfc-9bdbee0862fb%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/0f1d49d4-e924-4ef0-abfc-9bdbee0862fb%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> 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/CAC-wWcRYNT4Qz-OnN%3D%3DSBpWJHxuXOZ3HX8T8K5sN8o9%2BFX70rw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Re: Puppet 4 under Ubuntu 16.04

2016-10-17 Thread Lowe Schmidt
Do you want to install Oracle JDK on a machine or do you want to run the
puppet server with Oracle JDK ?



--
Lowe Schmidt | +46 723 867 157

On 17 October 2016 at 11:19, Ilia Ternovich  wrote:

> Hi,
>
> I can't install puppetserver because it requires openjdk. And I would like
> to use puppet for installing oracle jdk
>
> Please advise
>
> On Friday, October 14, 2016 at 5:26:34 PM UTC+2, Ilia Ternovich wrote:
>>
>> Hi,
>>
>> Is there any way of installing puppetmaster 4 into Ubuntu 16.04?
>>
>> I have read numerous articles in internet regarding importing
>> https://apt.puppetlabs.com/puppetlabs-release-pc1-xenial.deb -- but this
>> does not work. Latest version is always 3.8
>>
>> Please advise.
>>
>> Thanks
>>
> --
> 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/84dad439-963b-43f8-9636-0f564c119428%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/84dad439-963b-43f8-9636-0f564c119428%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> 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/CAC-wWcQo2RknafAmc1E5OY3mPzuMXcQ7MQWEUvBo9hjSUmnFnA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Re: Puppet 4 under Ubuntu 16.04

2016-10-17 Thread Lowe Schmidt
Yes, Puppet server is written in Clojure and requires a working JDK to run.

--
Lowe Schmidt | +46 723 867 157

On 17 October 2016 at 13:13, Ilia Ternovich  wrote:

> Hi,
>
> I would like to install puppet first and then manage my oracle jdk
> installation with it. I don't need OpenJDK
>
> But puppetserver ubuntu package has dependencies to OpenJDK:
>
> # apt-cache depends puppetserver
> puppetserver
>  |Depends: 
>   Depends: openjdk-8-jre-headless
>   Depends: net-tools
>   Depends: adduser
>   Depends: puppet-agent
>
>
> Thanks
>
> On Mon, Oct 17, 2016 at 1:02 PM, Lowe Schmidt  wrote:
>
>> Do you want to install Oracle JDK on a machine or do you want to run the
>> puppet server with Oracle JDK ?
>>
>>
>>
>> --
>> Lowe Schmidt | +46 723 867 157
>>
>> On 17 October 2016 at 11:19, Ilia Ternovich  wrote:
>>
>>> Hi,
>>>
>>> I can't install puppetserver because it requires openjdk. And I would
>>> like to use puppet for installing oracle jdk
>>>
>>> Please advise
>>>
>>> On Friday, October 14, 2016 at 5:26:34 PM UTC+2, Ilia Ternovich wrote:
>>>>
>>>> Hi,
>>>>
>>>> Is there any way of installing puppetmaster 4 into Ubuntu 16.04?
>>>>
>>>> I have read numerous articles in internet regarding importing
>>>> https://apt.puppetlabs.com/puppetlabs-release-pc1-xenial.deb -- but
>>>> this does not work. Latest version is always 3.8
>>>>
>>>> Please advise.
>>>>
>>>> Thanks
>>>>
>>> --
>>> 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/ms
>>> gid/puppet-users/84dad439-963b-43f8-9636-0f564c119428%40googlegroups.com
>>> <https://groups.google.com/d/msgid/puppet-users/84dad439-963b-43f8-9636-0f564c119428%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> 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/to
>> pic/puppet-users/l2SQACok7Us/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/ms
>> gid/puppet-users/CAC-wWcQo2RknafAmc1E5OY3mPzuMXcQ7MQWEUvBo9h
>> jSUmnFnA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/puppet-users/CAC-wWcQo2RknafAmc1E5OY3mPzuMXcQ7MQWEUvBo9hjSUmnFnA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>> 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/CAPP%2BqtAY6we-17kJ0Qx8wD058eMWnsDZ4HsnHjyQ21
> 8k4qtLag%40mail.gmail.com
> <https://groups.google.com/d/msgid/puppet-users/CAPP%2BqtAY6we-17kJ0Qx8wD058eMWnsDZ4HsnHjyQ218k4qtLag%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> 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/CAC-wWcQth2%2Br9xXsqpKgjh2BhghJLOGbG9%3DSE4Da2cdbvHzb_Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] "Error: Could not request certificate: Error 500 on SERVER" after updating certificate

2016-10-25 Thread Lowe Schmidt
What does your server logs say? And what Puppet version are you running?
--
Lowe Schmidt | +46 723 867 157


On 25 October 2016 at 12:58,   wrote:
>
> Hi,
> I need to renew the SSL certificate.
>
> I overwrite the old certificate files with the new files and restart the
> httpd.
>
> When I tried to run puppet from the agent I get:
>
>...
>Error: Could not request certificate: Error 500 on SERVER
>...
>Phusion Passenger
>Web application could not be started
>...
>
> The unix permission look the same as the old one.
> I also remove the agent's certificate files from the agent and from the
> master.
> If I put back the old certificate everything work okay.
>
> Any to solve the problem?
>
> Shlomit
>
> --
> 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/809f5d76-8f2f-4315-b3f6-c0453979c07b%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/CAC-wWcS_P7_8QwSrQVnsYxVyo7vejyiAJL4vYPkwt4c3ftRvHA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] "Error: Could not request certificate: Error 500 on SERVER" after updating certificate

2016-10-26 Thread Lowe Schmidt
So you did remove the SSL certificate on the _agent_ as well?
--
Lowe Schmidt | +46 723 867 157


On 26 October 2016 at 08:22,   wrote:
> In the log:
>
> Could not prepare for execution: The certificate retrieved from the master
> does not match the agent's private key.
> Certificate fingerprint:
> XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:...
> To fix this, remove the certificate from both the master and the agent and
> then start a puppet run, which will automatically regenerate a certficate.
> On the master:
>puppet cert clean puppet.wezmann.pem
> On the agent:
>rm -f /var/lib/puppet/ssl/certs/puppet.wezmann.pem
>puppet agent -t
>
> Which I did and no help + warning about deprecate things that  I believe not
> connected to the problem because it still working with the old certificate.
> Puppet: 3.6.2
> Thanks.
>
> On Tuesday, October 25, 2016 at 4:55:21 PM UTC+3, Lowe Schmidt wrote:
>>
>> What does your server logs say? And what Puppet version are you running?
>> --
>> Lowe Schmidt | +46 723 867 157
>>
>>
>> On 25 October 2016 at 12:58,   wrote:
>> >
>> > Hi,
>> > I need to renew the SSL certificate.
>> >
>> > I overwrite the old certificate files with the new files and restart the
>> > httpd.
>> >
>> > When I tried to run puppet from the agent I get:
>> >
>> >...
>> >Error: Could not request certificate: Error 500 on SERVER
>> >...
>> >Phusion Passenger
>> >Web application could not be started
>> >...
>> >
>> > The unix permission look the same as the old one.
>> > I also remove the agent's certificate files from the agent and from the
>> > master.
>> > If I put back the old certificate everything work okay.
>> >
>> > Any to solve the problem?
>> >
>> > Shlomit
>> >
>> > --
>> > 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 view this discussion on the web visit
>> >
>> > https://groups.google.com/d/msgid/puppet-users/809f5d76-8f2f-4315-b3f6-c0453979c07b%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/826a66f2-eca4-4043-80e6-44e4f37c8529%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/CAC-wWcRFZ7HtVQ%2BKXsPJw71LM_3Kh%3DHPo4QH8%3DPUDfNP3dsMSg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] "Error: Could not request certificate: Error 500 on SERVER" after updating certificate

2016-10-27 Thread Lowe Schmidt
And you requested a new one?
--
Lowe Schmidt | +46 723 867 157


On 27 October 2016 at 08:04,   wrote:
> Yes
>
> On Wednesday, October 26, 2016 at 10:23:59 AM UTC+3, Lowe Schmidt wrote:
>>
>> So you did remove the SSL certificate on the _agent_ as well?
>> --
>> Lowe Schmidt | +46 723 867 157
>>
>>
>> On 26 October 2016 at 08:22,   wrote:
>> > In the log:
>> >
>> > Could not prepare for execution: The certificate retrieved from the
>> > master
>> > does not match the agent's private key.
>> > Certificate fingerprint:
>> > XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:...
>> > To fix this, remove the certificate from both the master and the agent
>> > and
>> > then start a puppet run, which will automatically regenerate a
>> > certficate.
>> > On the master:
>> >puppet cert clean puppet.wezmann.pem
>> > On the agent:
>> >rm -f /var/lib/puppet/ssl/certs/puppet.wezmann.pem
>> >puppet agent -t
>> >
>> > Which I did and no help + warning about deprecate things that  I believe
>> > not
>> > connected to the problem because it still working with the old
>> > certificate.
>> > Puppet: 3.6.2
>> > Thanks.
>> >
>> > On Tuesday, October 25, 2016 at 4:55:21 PM UTC+3, Lowe Schmidt wrote:
>> >>
>> >> What does your server logs say? And what Puppet version are you
>> >> running?
>> >> --
>> >> Lowe Schmidt | +46 723 867 157
>> >>
>> >>
>> >> On 25 October 2016 at 12:58,   wrote:
>> >> >
>> >> > Hi,
>> >> > I need to renew the SSL certificate.
>> >> >
>> >> > I overwrite the old certificate files with the new files and restart
>> >> > the
>> >> > httpd.
>> >> >
>> >> > When I tried to run puppet from the agent I get:
>> >> >
>> >> >...
>> >> >Error: Could not request certificate: Error 500 on SERVER
>> >> >...
>> >> >Phusion Passenger
>> >> >Web application could not be started
>> >> >...
>> >> >
>> >> > The unix permission look the same as the old one.
>> >> > I also remove the agent's certificate files from the agent and from
>> >> > the
>> >> > master.
>> >> > If I put back the old certificate everything work okay.
>> >> >
>> >> > Any to solve the problem?
>> >> >
>> >> > Shlomit
>> >> >
>> >> > --
>> >> > 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 view this discussion on the web visit
>> >> >
>> >> >
>> >> > https://groups.google.com/d/msgid/puppet-users/809f5d76-8f2f-4315-b3f6-c0453979c07b%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...@googlegroups.com.
>> > To view this discussion on the web visit
>> >
>> > https://groups.google.com/d/msgid/puppet-users/826a66f2-eca4-4043-80e6-44e4f37c8529%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/9c6c5d0c-5d4f-447e-8424-567845d69f35%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/CAC-wWcQb4PdYWdmkFs1R%2Ba%2Bo3FLcKU1WFbnJ9Joc-WfuU6du6A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Exported resources in Puppet 4 without using PuppetDB?

2016-12-17 Thread Lowe Schmidt
Sorry, but no. I'm quite sure that PuppetDB (and Postgres) is a hard
dependency for exported resources.

--
Lowe Schmidt | +46 723 867 157

On 16 December 2016 at 23:52, Johnson Earls  wrote:

> Hello all,
>
> I was just wondering - has anyone come across a plugin or something that
> would allow the use of exported resources in Puppet 4.x *without* using
> PuppetDB?  The company I work for has declared PostgreSQL taboo within the
> corporate network and so I cannot run PuppetDB, and the lack of exported
> resources is really starting to grate.  I'm hoping someone has seen
> something out there that can help solve this for me :)
>
> Thanks in advance,
> - Johnson
>
> --
> 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/95a0f132-7b41-4158-af41-8a9785646aa8%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/95a0f132-7b41-4158-af41-8a9785646aa8%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAC-wWcQ5BOMLHeyUV%3DZ_KzLnFMYOTS4G-%2BOM2W-kNtJy6sQn9w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] PATH when using puppet apply. RVM buggered.

2017-01-06 Thread Lowe Schmidt
Later versions of puppet comes with their own supported ruby included[0]

Any specific reason you are using rvm to run puppet?

[0]
"Starting with Puppet 4, puppet-agent packages do not rely on the OS’s Ruby
version, as it bundles its own Ruby environment. You can install
puppet-agent alongside any version of Ruby or on systems without Ruby
installed. Likewise Puppet Enterprise does not rely on the OS’s Ruby
version, as it bundles its own Ruby environment. You can install PE
alongside any version of Ruby or on systems without Ruby installed.  The
Windows installers provided by Puppet Labs don’t rely on the OS’s Ruby
version, and can be installed alongside any version of Ruby or on systems
without Ruby installed."

https://docs.puppet.com/guides/platforms.html

--
Lowe Schmidt | +46 723 867 157

On 6 January 2017 at 12:02, Steve Button  wrote:

> Hi,
>
> I'm using "sudo puppet apply" to get a bunch of puppet code to run for me,
> but when it runs as root, I notice that the $PATH environment variable is
> showing as :-
>
> Notice: /Stage[main]/Main/Node[ubuntu-xenial]/Exec[/bin/echo
> $PATH]/returns: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/
> bin:/snap/bin
>
> Whereas when I switch to root, I get
>
> root@ubuntu-xenial:~# echo $PATH
>
> /usr/local/rvm/gems/ruby-2.3.0/bin:/usr/local/rvm/gems/ruby-2.3.0@global
> /bin:/usr/local/rvm/rubies/ruby-2.3.0/bin:/usr/local/sbin:/usr/
> local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/usr/local/rvm/bin
>
> This means that rvm does not work properly, and my Ruby / gem is trying to
> run as 1.9.3 instead of 2.3.0, leading to lots of errors like :-
>
> Debug: Executing '/usr/local/bin/gem list --local'
>
> Warning: Could not match /usr/local/lib/ruby/1.9.1/yaml.rb:56:in ` (required)>':
>
>
> Warning: Could not match It seems your ruby installation is missing psych
> (for YAML output).
>
>
> Warning: Could not match To eliminate this warning, please install libyaml
> and reinstall your ruby.
>
> I have tried searching for this error, but haven't found anything yet so I
> was hoping someone in the community could point me in the right direction!?
>
> Many thanks,
>
> Steve Button
>
> --
> 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/a82c783e-05f6-451c-9f07-99a46f2e952a%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/a82c783e-05f6-451c-9f07-99a46f2e952a%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAC-wWcRF9i_Qb2rsLJW9y6efwWMadgRTnLs5DCCRGe%2BA3n00Ew%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Puppet managing thousands of resources

2017-01-11 Thread Lowe Schmidt
How do  you run the puppetmaster? (Also, 2.6 is wy EOL)

--
Lowe Schmidt | +46 723 867 157

On 11 January 2017 at 18:58, Zachary Vida  wrote:

> Hello, I was wonder if there are any significant impovements in later
> version of puppet >= 2.6 to catolog compilation and/or application
> runtimes.
>
> In an environment I manage we populate many local files
> (/etc/passwd,/etc/group,/etc/hosts) via ENC. This results in a steady
> state catalog compilation/apply run times of several minutes and during an
> inital puppet apply clocking in at 90 minutes.
>
>
>
> --
> 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/d7cc6062-722b-4f8a-9284-27ded5048c34%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/d7cc6062-722b-4f8a-9284-27ded5048c34%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAC-wWcQKZOS9GhBXZD-ybYerPGZ42T8uH937dUX84Qd4_OkxLg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Issue with puppetlabs-java

2017-01-20 Thread Lowe Schmidt
The README.md says the following.

"Oracle Java is supported on:

   - CentOS 6"


--
Lowe Schmidt | +46 723 867 157

On 20 January 2017 at 16:58, bodik  wrote:

> class {"java": } but i doubt that {"java::oracle": }
>
> On 01/20/2017 04:53 PM, Gustavo S. L. wrote:
> > cat manifests/* | grep -i xenial -A 5 -B 5 --color
> >
> > The problem may not be in the module
> >
> > 2017-01-20 13:47 GMT-02:00 bodik :
> >
> >>
> >>> unsupported platform Ubuntu at
> >>> /etc/puppetlabs/code/environments/production/
> >> modules/java/manifests/oracle.pp:127:11
> >>
> >> from the code
> >> https://github.com/puppetlabs/puppetlabs-java/blob/master/
> >> manifests/oracle.pp#L147
> >>
> >> i can see that probably puppetlabs-java module is made just to support
> >> officially supported operating systems.
> >>
> >> you'd better to install java by hand or modify the module (should not be
> >> very
> >> hard) you might get inspired by:
> >>
> >> https://github.com/puppetlabs/puppetlabs-java/commit/
> >> d30954ebc445b76237cc3c078b83457cc26b19e5
> >>
> >
>
> --
> 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/5882339B.4020501%40cesnet.cz.
> 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/CAC-wWcQR1n2o9WhNH1xXb%2BV2LYY%2BiOcGpJv1X0koGNfHKEM3BQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] puppetlabs apt module - jenkins repository

2017-01-30 Thread Lowe Schmidt
What happens if you have repos empty?

repos  => ''

--
Lowe Schmidt | +46 723 867 157

On 29 January 2017 at 18:06, Romgo  wrote:

> Hello,
>
> I'm trying to use this module to configure my debian server.
> I have one issue with the jenkins repository,
>
> I use the following configuration :
>
> deb http://pkg.jenkins.io/debian-stable binary/
>
> So I declare on my node :
>
> apt::source { "jenkins-${lsbdistcodename}":
>   location => 'http://pkg.jenkins.io/debian',
>   key  => 'A1BD8E9D78F7FE5C3E65D8AF8B48AD6246925553',
>   release  => 'binary',
> }
>
> this doesn't work, because if the repos parameter is empty, the plugin put 
> 'main' by default.
> So here is what I get :
> deb http://pkg.jenkins.io/debian binary main
>
> This doesn't work.
>
> Is there a way to allow an empty repos parameter ?
>
> 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 to puppet-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/puppet-users/63e3427b-9f92-4da5-9705-8ea9fb001a91%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/63e3427b-9f92-4da5-9705-8ea9fb001a91%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAC-wWcT5W_989ThumFNvF98sPWXcWiCvrLugU-9i54f2v8Dbdw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Escape codes in collection types

2017-02-01 Thread Lowe Schmidt
Did you omit the "$" here for the $color hash or is it missing in the
source ?

--
Lowe Schmidt | +46 723 867 157

On 1 February 2017 at 00:20, Joshua Schaeffer 
wrote:

> I'm new to Puppet and learning the program and language so this question
> might seem novice. I'm confused why I can assign an escape character to a
> variable but not inside any collection types (arrays or hashes). I was
> doing the simply motd puppet module and I created this:
>
> $red = "^[[0;31m"
> $green = "^[[0;32m"
> $white = "^[[0;33m"
> $bold = "^[[1m"
> $unbold = "^[[22m"
> ...
>
> Those "^[" characters are actual escape characters (a.k.a. echo -e
> \033[0;31m...). When I define my motd variable (which has the contents of
> /etc/motd) I can do this:
>
> $motd = @("END")
> You are connecting to: *$**{bold}*${facts[hostname]}.${facts[networking][
> 'domain']}
>
>
>
> *${unbold}..END*
>
> This works when I apply my manifest. Well, I thought having all those
> variables is stupid so I wanted to put them in a hash and just reference
> them by key:
>
> color = {
>   'red' => "^[[0;31m",
>   'green' => "^[[0;32m",
>   'white' => "^[[0;33m",
>   'bold' => "^[[1m",
>   'unbold' => "^[[22m",
> }
> ...
> $motd = @("END")
> You are connecting to: *$**{color['bold']}*${facts[hostname]}.${facts[
> networking]['domain']}${color['unbold']}
>
>
> *..END*
>
> However this produces an error
>
> $puppet apply --environment sandbox ./manifests/
> Error: Illegal attempt to assign to 'a Name'. Not an assignable reference
> at /etc/puppetlabs/code/environments/sandbox/modules/motd/manifests/init.
> pp:53:2 on node fenix.harmonywave.com
>
> I get the same issue if I try using an array as well. I'm fine using a
> variable for each color, I'm just curious why they can't be assigned to
> collection types.
>
> Thanks,
> Joshua
>
> --
> 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/12bb88f5-07be-4ae8-9bfb-c4b044d26dd5%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/12bb88f5-07be-4ae8-9bfb-c4b044d26dd5%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAC-wWcQ_7%3DbWrhB%2BmwAXVOrGeDbjoT7N1YK5WKj3Uq0SRYp1hw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Automated PuppetDB/PostgreSQL install?

2017-07-23 Thread Lowe Schmidt
Doesn't the puppetdb module do what you want?
https://forge.puppet.com/puppetlabs/puppetdb#setup

--
Lowe Schmidt | +46 723 867 157

On 22 July 2017 at 18:50, Keith Miller  wrote:

> Hey guys, new to Puppet and looking for some help. Some facts first:
>
>- Using Ubuntu 16.04
>- Cluster will be of about 60-80 nodes
>- Building the infrastructure with Terraform
>- Have Puppet Server and Puppet Agents installing through automated
>startup scripts and working.
>
> So I'm looking to see if it's possible to automate the install of PuppetDB
> and PostgreSQL, hopefully on the Puppet Server machine. I found multiple
> instructions on how to install, but they all seem to involve manual setup
> of the PostgreSQL database. Any help would be appreciated.
>
> Thanks!
>
> --
> 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/6a57ce96-c30a-478d-aeaf-0c7d230ffc24%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/6a57ce96-c30a-478d-aeaf-0c7d230ffc24%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAC-wWcSrHZF0HraaPBcX%2BcvYFs75%2BOAV27gkvFrzy5joW8jgEA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] saz-sudo puppet module question

2017-08-15 Thread Lowe Schmidt
The CentOS template is part of the RHEL{5,6,7} template(s) as it's
basically the same OS.

--
Lowe Schmidt | +46 723 867 157

On 15 August 2017 at 04:21, Jagga Soorma  wrote:

> Hi Guys,
>
> I am trying to use the saz-sudo (https://forge.puppet.com/saz/sudo)
> puppet module from the forge to manage our sudoers config and things
> have been going good so far.  However, I now have the need to disable
> the "Defaultssecure_path = /sbin:/bin:/usr/sbin:/usr/bin" line but
> don't seem to understand how to make any changes to the default
> /etc/sudoers file using this module.  There seem to be templates for
> different os types but none for centos so not sure how/where it is
> being generated from?  Any help disabling this option in
> /etc/sudoers.conf using this module would be greatly appreciated!
>
> 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/CAKyjK501%2BqyvDA1m37%3Drxyd%3DhFRc%
> 3DyVDU6p7-mtVALShmmUpGQ%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/CAC-wWcQ51dPDPx4rKRjF__AfWjwgB-Ncc%3DtHQTGtbV22j9RqZg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] parts of class being skipped :(

2017-10-04 Thread Lowe Schmidt
What is the problem you’re having?

Sent from my iPhone

> On 4 Oct 2017, at 17:12, kaseeve  wrote:
> 
> Please forgive my limited knowledge on puppet. I need some assistance in 
> achieving what most of you would consider a very simple task. I am attempting 
> to install zabbix agent below and modify the configuration file then reload 
> the service. I believe the code is incomplete but i am not sure where the 
> problem is because the agent run in not generating an error. from analysis 
> the package is installed and the service is enabled then nothing else.
> 
> My thought process for the class is a follow. 1.Create a repo on the servers 
> 2. install zabbix agent 3. modify the config file 4. reload the service.
> 
> The code can be seen below. Thank you in advance for any assistance i really 
> appreciate it.
> 
> class zabbixinstall {
> case $operatingsystemmajrelease {
> "5": {
> yumrepo { 'zabbix3.4_repo':
> enabled  => 1,
> descr=> 'Zabbix 3.4 Repo Created by Sysad',
> baseurl  => 
> 'http://repo.zabbix.com/zabbix/3.4/rhel/5/$basearch/',
> gpgcheck => 1,
> gpgkey   => 'http://repo.zabbix.com/RPM-GPG-KEY-ZABBIX',
>  }
> }
> "6": {
> yumrepo { 'zabbix3.4_repo':
> enabled  => 1,
> descr=> 'Zabbix 3.4 Repo Created by Sysad',
> baseurl  => 
> 'http://repo.zabbix.com/zabbix/3.4/rhel/6/$basearch/',
> gpgcheck => 1,
> gpgkey   => 'http://repo.zabbix.com/RPM-GPG-KEY-ZABBIX',
>  }
> }
> "7": {
> yumrepo { 'zabbix3.4_repo':
> enabled  => 1,
> descr=> 'Zabbix 3.4 Repo Created by Sysad',
> baseurl  => 
> 'http://repo.zabbix.com/zabbix/3.4/rhel/7/$basearch/',
> gpgcheck => 1,
> gpgkey   => 'http://repo.zabbix.com/RPM-GPG-KEY-ZABBIX',
>  }
> }
> }
> 
> 
> package { 'zabbix-agent':
> ensure  => 'installed',
> require => Yumrepo['zabbix3.4_repo'],
>   }
> service { 'zabbix-agent':
> enable => 'true',
> ensure  => running,
> require => Package['zabbix-agent']
> }
> 
> file_line{ 'Append a line to /etc/zabbix/zabbix_agentd.conf':
> path=> '/etc/zabbix/zabbix_agentd.conf',
> line=> "Server=server2.grp.local",
> ensure  => 'present',
> match   => '^Server\=127\.0\.0\.1',
> append_on_no_match  => 'false',
>  }
> file_line{ 'Replace line to /etc/zabbix/zabbix_agentd.conf':
> path=> '/etc/zabbix/zabbix_agentd.conf',
> line=> "ServerActive=server2.grp.local",
> ensure  => 'present',
> match   => '^ServerActive\=127\.0\.0\.1',
> append_on_no_match  => 'false',
>  }
> 
> 
> }
> -- 
> 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/1c8f121b-9ed0-4a4d-8cbf-7f79b3f77c21%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/7F18C6D0-3874-4835-8114-794FF8D50F43%40loweschmidt.se.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Puppet Apache vhost proxypassreverse configuration

2018-01-16 Thread Lowe Schmidt
There you go https://forge.puppet.com/puppetlabs/apache there's examples in
the documentation.

--
Lowe Schmidt | +46 723 867 157

On 16 January 2018 at 13:45, nikolai  wrote:

> hi,
>
> i need Configure using puppet that when i browse to http://
> (that configure on *apache* server) i will get hello world page from
> *tomcat.*
>
> *So i need to know with which Apache puppet module **I need to use and
> how the code will look like?*
>
> *in the end its need to look like this:*
>
> 
>
>
>
> ProxyPass / http://127.0.0.1:8080/
>
> ProxyPassReverse / http://127.0.0.1:80/
>
>
> 
>
> --
> 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/b49c6c42-251c-4622-a1d5-6fcda4a324bb%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/b49c6c42-251c-4622-a1d5-6fcda4a324bb%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAC-wWcS1%3DNJUPpM-V_o%2B6LZOapHPm7NYG%2BkEwy%2BWNcKac979%2BQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] puppet 3.8.1 reinstalling downgraded package on ubuntu precise

2015-07-12 Thread Lowe Schmidt
Setting the specific version instead of present should be enough.

[...]
ensure => 1.3.2,
[...]

for example.

--
Lowe Schmidt | +46 723 867 157

On 10 July 2015 at 18:58, Randall Smith  wrote:

> Greetings,
>
> I'm using puppet 3.8.1 on ubuntu precise. My manifest includes a very
> simple package to install docker.
>
>   package { $docker::params::docker_package_name:
> ensure => present,
> require => Class["docker::params"],
>   }
>
> I recently manually updated the docker package using apt-get on the
> server. The upgrade caused problems so I rolled it back. This is what dpkg
> shows for the docker package.
>
> # dpkg -l | grep docker
> rc  lxc-docker-1.3.2 1.3.2
> amd64Linux container runtime
> rc  lxc-docker-1.3.3 1.3.3
> amd64Linux container runtime
> rc  lxc-docker-1.4.0 1.4.0
> amd64Linux container runtime
> rc  lxc-docker-1.4.1 1.4.1
> amd64Linux container runtime
> ii  lxc-docker-1.5.0 1.5.0
> amd64Linux container runtime
> rc  lxc-docker-1.7.0 1.7.0
> amd64Linux container runtime
>
> That's what I want. Unfortunately, puppet sees the docker package as being
> purged and then re-installs/upgrades it (which I don't want). That would
> make sense if I had the package configured as 'latest' but it's configured
> as 'present'. What is going on and how do I prevent this from happening in
> the future?
>
> --
> 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/8fd0fa46-a6c1-4b01-b537-c84a59574763%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/8fd0fa46-a6c1-4b01-b537-c84a59574763%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAC-wWcSh1z0Mz9gvx51dn%2Bk%2BCerrz6z%2B0q4RMU%3DA0aejREy6nw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Configuring apache reverse proxies

2016-01-04 Thread Lowe Schmidt
Have a look at the proxy_pass section of the puppetlabs module.

https://github.com/puppetlabs/puppetlabs-apache#proxy_pass

--
Lowe Schmidt | +46 723 867 157

On 31 December 2015 at 22:43, yatesco  wrote:

> Hi all, a somewhat newbie here who has googled and read but can't find the
> answer ;-).
>
> I do _not_ want to configure puppet behind a proxy, rather I want to use
> puppet to configure a number of Apache servers which are themselves reverse
> proxies.
>
> I have an apache server - public.my.domain - which proxies /app-1 to
> app-1.my.domain/app-1 via the following fragment:
>
> ProxyPass /app-1 http://app-1.my.domain:8080/app-1
> ProxyPassReverse /app-1 http://app-1.my.domain:8080/app-1
>
> A given Apache server might be proxying 10 or so apps so I would need to
> parameterise the hostnames (and possible context roots although they are
> always the same in my environment).
>
> I looked at the puppet lab's apache module but can't quite figure out how
> to glue it together to do this.
>
> Any ideas?
>
> Thanks,
>
> Colin
>
> --
> 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/b658e7fd-f53e-475b-97b2-0d48561fbfc2%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/b658e7fd-f53e-475b-97b2-0d48561fbfc2%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAC-wWcS_LVcOuqBQkqJWT3d1WpBK2mtBBvj%2B%3D9MWy1L0AaGy_w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] How to use define type or variables

2016-01-04 Thread Lowe Schmidt
Can you please provide the error messages you get.

--
Lowe Schmidt | +46 723 867 157

On 29 December 2015 at 06:45,  wrote:

> Hi,
>
> I am new to puppet and I am trying to write a module to manage user
> .bashrc files. I managed to place the file to the desired location with
> following code for 1 user because the username is hardcoded. However, I
> tried different ways to manage the file for 10 different users using
> variables which fails. Can someone please help me with the same.
>
> init.pp:
> class profile (
>   $bashrc  = $profile::params::bashrc,
>   $bashrc_host  = $profile::params::bashrc_host,
> ) inherits profile::params {
>
>   anchor { 'profile::begin': } ->
>   class { '::profile::config': } ->
>   anchor { 'profile::end': }
> }
>
> config.pp:
> class profile::config inherits profile {
> file { $bashrc:
>ensure => file,
>source  => "puppet:///$bashrc_host",
> }
>
> params:pp:
> class profile::params {
>   $bashrc_host= "modules/profile/$fqdn_user1_bashrc"
> }
>   case $::osfamily {
> 'RedHat': {
>   $bashrc  = '/home/user1/.bashrc'
> }
> default: {
>   fail("The ${module_name} module is not supported on an ${::osfamily}
> based system.")
> }
>   }
>
> 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/eda4893c-a09d-44cd-80c3-c9c0f0d67599%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/eda4893c-a09d-44cd-80c3-c9c0f0d67599%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAC-wWcSnVmJLjfc7svpP%3D6%3DF7vXVByRWn-j4jYsV1QB5EpF_7g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] puppet module install cloudprovisioner Issue

2016-01-04 Thread Lowe Schmidt
You should probably use the gem provided with PE, not the system one.

--
Lowe Schmidt | +46 723 867 157

On 24 December 2015 at 07:14, Sandeep Majety 
wrote:

>
> I am trying to intall Puppet Eneterprise in Ubuntu 14.04 machine...
>
> After running the puppet module install puppetlabs-cloud_provisioner and
> testing puppet help, i am getting the below error
>
> ubuntu@ip-172-31-19-97:~$ puppet help
> Error: Could not autoload puppet/face/node/install: cannot load such file
> -- guid
> Error: Could not autoload puppet/face/node_aws/list: cannot load such file
> -- guid
>
> I have installed sudo gem install guid and
> sudo gem install fog
>
> Anyhep is highly appreciated.
>
> --
> 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/20d3a597-143b-4fb4-a216-a883d50ca016%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/20d3a597-143b-4fb4-a216-a883d50ca016%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAC-wWcR3ky6fRxmj95zDZsVRda-QPBD8MpAUDUD2ij9C3jzydA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Re: Why does rspec puppet that_requires matcher fail?

2016-01-04 Thread Lowe Schmidt
you depend on Class['splunk::install'] not Class['tpp::splunk::install'].

check your manifest.

--
Lowe Schmidt | +46 723 867 157

On 15 December 2015 at 02:50, Haani Niyaz  wrote:

> Forgot to add the error!
>
>   1) tpp::splunk::service when tpp is installed should contain Exec[splunk
> -accept-license] that requires Class[tpp::Splunk::Install]
>
>
>
>  Failure/Error: it { should contain_exec('splunk-accept-license').
> that_requires('Class[tpp::Splunk::Install]')}
>
>expected that the catalogue would contain Exec[splunk-accept-
> license] with that requires Class[tpp::Splunk::Install]
>
>  # ./spec/classes/splunk/service_spec.rb:28:in `block (3 levels) in
> '
>
>
>
> On Tuesday, 15 December 2015 09:32:53 UTC+11, Haani Niyaz wrote:
>>
>> Puppet code:
>>
>> # manifests/splunk/service.pp
>> class tpp::splunk::service
>>  exec { 'splunk-accept-license':
>>   command => '/opt/splunkforwarder/bin/splunk enable boot-start
>> --accept-license --answer-yes --no-prompt',
>>   creates => '/etc/init.d/splunk',
>>   before  => Service['splunk'],
>>   require => Class['splunk::install'],
>> }
>>
>> ...
>> }
>>
>>
>>
>>
>> The following rspec test works with require as shown below:
>>
>>  it { is_expected.to contain_exec('splunk-accept-license')
>>   .with(
>> 'command' => '/opt/splunkforwarder/bin/splunk enable boot-start
>> --accept-license --answer-yes --no-prompt',
>> 'creates' => '/etc/init.d/splunk',
>> 'require' => 'Class[Tpp::Splunk::Install]',
>>   )}
>>
>> However if I use the that_requires matcher it fails:
>>
>>   it { should contain_exec('splunk-accept-license')
>>   .that_requires('Class[Tpp::Splunk::Install]')
>>}
>>
>>
>> Can someone shed some light as to why this might be the case?
>>
>> Thanks.
>>
> --
> 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/72a6385e-96df-4775-964d-8bb8a15698b2%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/72a6385e-96df-4775-964d-8bb8a15698b2%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> 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/CAC-wWcQc90mvpqv2zVau9tLvBJd_OXD%3DqW15VvmpMJmhTv96qA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] exec check for directory

2016-01-05 Thread Lowe Schmidt
You will always create the file regardless of the before=>[] block, before
just makes sure to realise what is referenced in the before block and then
do what is in the file block.

What are you trying to accomplish?

Putting a .bashrc in place if a user exist?



--
Lowe Schmidt | +46 723 867 157

On 5 January 2016 at 12:51,  wrote:

> Hi,
>
> I am writing a module to place a file into a directory only if the
> directory exist. If the directory or source does not exist it should simply
> ignore without throwing an error message. However I get an error saying
> that the file could not be created. Can anyone please help me to find out
> what is wrong with the below code?
>
> err: /File[/home/user/.bashrc]/ensure: change from absent to file failed:
> Could not set 'file on ensure: cannot generate tempfile
>
> define test::user (username = $user){
>
> file { "/home/${name}/.bashrc":
>ensure  => file,
>source  => ["puppet:///modules/test/${fqdn}_${$user}_bashrc" ,
> 'puppet:///modules/test/bashrc-default'],
>before  =>  Exec ["${user}_check"],
> }
>
> exec {"${user}_check":
>   command => '/bin/false',
>   provider => shell,
>   unless => "/usr/bin/test -d /home/$name",
> }
>
> 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/e5de03ec-c7ae-4b4d-86dd-62270ef2856a%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/e5de03ec-c7ae-4b4d-86dd-62270ef2856a%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAC-wWcTguTQ3-CHt2LOV9RG_BGq4X_fNfzhbYQckNptB4gi5-Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Use nodes with defined resource in nginx configuration

2016-01-19 Thread Lowe Schmidt
Exported resources would accomplish what you are trying to do, as long as
you don't often and rapidly remove and add upstream app-hosts.

--
Lowe Schmidt | +46 723 867 157

On 18 January 2016 at 14:29, Frederik Bjerggaard Nielsen 
wrote:

> Hi,
>
> I am working on making our puppet infrastructure more dynamic where I can
> add any number of nodes and these will automatically be applied in another
> nodes configuration.
>
> *An example:*
> I have X number of hosts running a Java application, which are defined by
> our *javaapp* module with the following define in it (simplified):
>
> define javaapp::site (
>   $site_name,
>   $site_port ) {
>   # Doing some stuff regarding deployment etc here
> }
>
> These are defined in the site.pp file like this:
>
> javaapp::site { 'app01':
>   play_site_name=> 'app01',
>   play_site_port=> 9100,
> }
>
> We have a nginx reverse proxy in front of these application servers where
> I need to forward requests to a range of servers. Currently my nginx
> template looks like this:
>
> upstream app-hosts {
>   server <%= @host_app_01 %>:9100;
>   server <%= @host_app_02 %>:9100;
> }
>
> Where *@host_app_01* and *@host_app_02* have been defined globally in the
> site.pp file with the IP of the nodes.
>
> What I would like to do is to collect an array of the nodes with a
> specific javaapp site name and use it in the nginx template.
>
> I have read a little about exported resources, but I can't figure out
> whether it is the right thing for this situation?
>
> Is it even possible to do with puppet?
>
> We are running puppet version 3.7.5.
>
> Thanks in advance.
>
> Regards
> Frederik Nielsen
>
> --
> 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/a3bcb7c2-f8bb-4b4b-a901-a328662e2266%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/a3bcb7c2-f8bb-4b4b-a901-a328662e2266%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAC-wWcQTTqcZe1x3rfswQmTyV1pzMKNcMSFe5RHNZtCB43Q8pw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] puppet can not auto update files under one dircetory when one of these files was deleted

2016-01-21 Thread Lowe Schmidt
Puppet does not remove files on agent systems if the puppet server does not
have them anymore.

What you probably want to do is set the "ensure => absent" on the file
resource in your puppet code.
This will ensure that the file is deleted on the puppet agent machine.

--
Lowe Schmidt | +46 723 867 157

On 21 January 2016 at 10:33, paul zhao  wrote:

> In Centos 6.5, I use puppet 3.8.2. I found an question, for example:
>
>  in pupept-server machine, there has diretory A,  and a.conf in A, b.conf
> in A,
> then in puppet-agent, after synchronized(puppet agent -t), there also has
> diretory A, a.conf in A, b.conf in A
> next, in pupept-server, I deleted ../A/b.conf,
> then in puppet-agent, after synchronized(puppet agent -t), there also has
> diretory A, a.conf in A and b.conf in A,
>
> Why in puppet-agent, ../A/b.conf still existed?
>
> --
> 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/3d8d5d0a-be60-4223-9031-6655b6a68f8a%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/3d8d5d0a-be60-4223-9031-6655b6a68f8a%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAC-wWcSVLZG4%3DjNrNipPcHzCXVHpDgD_jph5XHzAGug1kYK%2BKQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] override values in puppet account creation

2016-01-23 Thread Lowe Schmidt
you probably need to lift up the parameters to the define.

something like


define accounts::virtual ($uid, $realname, $pass, $shell='/bin/bash') {... }


It's been awhile since I did program in puppet, but that should be a start.


--
Lowe Schmidt | +46 723 867 157

On 23 January 2016 at 18:22, Tim Dunphy  wrote:

> Hey guys,
>
>  I've got a puppet module that creates user accounts on linux machines.
>
>  I'm trying to override a couple settings in my config for the user's
> shell and home directory. And I'm getting this error:
>
> Error: Could not retrieve catalog from remote server: Error 400 on
> SERVER: Invalid parameter shell on Accounts::Virtual[mysql] at
> /etc/puppet/environments/production/modules/accounts/manifests/init.pp:70
> on node solr1.jokefire.com
> Warning: Not using cache on failed catalog
> Error: Could not retrieve catalog; skipping run
>
> I have the user virtual account definitions setup this way in the account
> module's init.pp:
>
>
>@accounts::virtual { 'mysql':
>  uid =>  1007,
>  shell   =>  '/bin/false',
>  home=> '/var/lib/mysql',
>  realname=>  'mysql',
>  pass=>  'secret_hash',
> }
>
> And this is how the virtual account definitions are setup:
>
> # Defined type for creating virtual user accounts
> #
> define accounts::virtual ($uid,$realname,$pass) {
>
>   user { $title:
> ensure=>  'present',
> uid   =>  $uid,
> gid   =>  $title,
> shell =>  '/bin/bash',
> home  =>  "/home/${title}",
> comment   =>  $realname,
> password  =>  $pass,
> managehome=>  true,
> require   =>  Group[$title]
>   }
>
>   group { $title:
> gid   =>  $uid,
>   }
>
>   file { "/home/${title}":
> ensure=>  directory,
> owner =>  $title,
> group =>  $title,
> mode  =>  0750,
> require   =>  [ User[$title], Group[$title] ]
>   }
> }
>
> Where am I going wrong? Why can't I override these values?
>
> --
> GPG me!!
>
> gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
>
> --
> 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/CAOZy0ekGSusExu6fP03HA-%2BY2iPmCaMgv%2B7%3Dkr6V%2BCBOHS%3DH9Q%40mail.gmail.com
> <https://groups.google.com/d/msgid/puppet-users/CAOZy0ekGSusExu6fP03HA-%2BY2iPmCaMgv%2B7%3Dkr6V%2BCBOHS%3DH9Q%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> 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/CAC-wWcSzshwerCyVLSJMYP3_kS%2BxftCjRkERc-mwd0O2JEiwZg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Puppet/Puppetboard throwing error 'Internal Server Error'

2016-01-26 Thread Lowe Schmidt
Is PuppetDB running?

--
Lowe Schmidt | +46 723 867 157

On 25 January 2016 at 13:29, Manoj Kumar  wrote:

> Getting following error in apache logs :
>
> [Mon Jan 25 11:44:21.960584 2016] [:error] [pid 13523]
> ERROR:pypuppetdb.api:Not Found localhost:8080 over HTTP.
> [Mon Jan 25 11:44:21.964374 2016] [:error] [pid 13523]
> ERROR:pypuppetdb.api:Not Found localhost:8080 over HTTP.
> [Mon Jan 25 11:44:21.964949 2016] [:error] [pid 13523]
> ERROR:puppetboard.app:Exception on /favicon.ico/ [GET]
> [Mon Jan 25 11:44:21.964967 2016] [:error] [pid 13523] Traceback (most
> recent call last):
> [Mon Jan 25 11:44:21.964974 2016] [:error] [pid 13523]   File
> "/srv/puppetboard/virtenv-puppetboard/lib/python2.7/site-packages/flask/app.py",
> line 1817, in wsgi_app
> [Mon Jan 25 11:44:21.964980 2016] [:error] [pid 13523] response =
> self.full_dispatch_request()
> [Mon Jan 25 11:44:21.964985 2016] [:error] [pid 13523]   File
> "/srv/puppetboard/virtenv-puppetboard/lib/python2.7/site-packages/flask/app.py",
> line 1477, in full_dispatch_request
> [Mon Jan 25 11:44:21.964991 2016] [:error] [pid 13523] rv =
> self.handle_user_exception(e)
> [Mon Jan 25 11:44:21.964997 2016] [:error] [pid 13523]   File
> "/srv/puppetboard/virtenv-puppetboard/lib/python2.7/site-packages/flask/app.py",
> line 1370, in handle_user_exception
> [Mon Jan 25 11:44:21.965002 2016] [:error] [pid 13523] return
> self.handle_http_exception(e)
> [Mon Jan 25 11:44:21.965008 2016] [:error] [pid 13523]   File
> "/srv/puppetboard/virtenv-puppetboard/lib/python2.7/site-packages/flask/app.py",
> line 1330, in handle_http_exception
> [Mon Jan 25 11:44:21.965014 2016] [:error] [pid 13523] return
> handler(e)
> [Mon Jan 25 11:44:21.965019 2016] [:error] [pid 13523]   File
> "/srv/puppetboard/puppetboard/puppetboard/app.py", line 110, in not_found
> [Mon Jan 25 11:44:21.965024 2016] [:error] [pid 13523] envs =
> environments()
> [Mon Jan 25 11:44:21.965030 2016] [:error] [pid 13523]   File
> "/srv/puppetboard/puppetboard/puppetboard/app.py", line 73, in environments
> [Mon Jan 25 11:44:21.965035 2016] [:error] [pid 13523] envs =
> get_or_abort(puppetdb.environments)
> [Mon Jan 25 11:44:21.965040 2016] [:error] [pid 13523]   File
> "/srv/puppetboard/puppetboard/puppetboard/utils.py", line 26, in
> get_or_abort
> [Mon Jan 25 11:44:21.965045 2016] [:error] [pid 13523]
> abort(e.response.status_code)
> [Mon Jan 25 11:44:21.965050 2016] [:error] [pid 13523]   File
> "/srv/puppetboard/virtenv-puppetboard/lib/python2.7/site-packages/werkzeug/exceptions.py",
> line 576, in __call__
> [Mon Jan 25 11:44:21.965056 2016] [:error] [pid 13523] raise
> self.mapping[code](*args, **kwargs)
> [Mon Jan 25 11:44:21.965061 2016] [:error] [pid 13523] NotFound: 404: Not
> Found
>
>
> Can anyone please help on this?
>
> --
> 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/e347bc0d-d1c4-4b9d-be20-5a89e0a45cdf%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/e347bc0d-d1c4-4b9d-be20-5a89e0a45cdf%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAC-wWcTVJ3mmjq6Xx-85o-cNSE8TM86ajKetOnWRQEpCfJYQEg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Error: Could not find class apache

2016-01-26 Thread Lowe Schmidt
You will have to show us the relevant puppet code and link to the module
you are using.

Also read the link in the error message.


--
Lowe Schmidt | +46 723 867 157

On 25 January 2016 at 21:11, Maruti Gangumolu 
wrote:

> Hi Team,
>
> I'm new to puppet coding and I'm trying to install apache tomcat using
> class which is being included in nodes.pp file.
>
> I'm getting this error message when running site.pp file
>
> C:\ABC\Puppet\manifests>puppet apply C:\ABC\Puppet\manifests\site.pp
> Warning: The use of 'import' is deprecated at
> C:/ABC/Puppet/manifests/site.pp
> :1. See http://links.puppetlabs.com/puppet-import-deprecation
>(at C:/Program Files/Puppet
> Labs/Puppet/puppet/lib/puppet/parser/parser_suppo
> rt.rb:110:in `import')
> Error: Could not find class apache for  on node imiblr
> Error: Could not find class apache for  on node imiblr
>
> Could you please help me in fixing this issue?
>
> --
> 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/2a28a925-5fd8-4d2e-992d-c4df22e944b4%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/2a28a925-5fd8-4d2e-992d-c4df22e944b4%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAC-wWcQP_qK7Zd52Hwd0xfmm-XC%2Bm%2ByQtdmZmM5Oz-i1BzGAWQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] puppet module environment bug?

2016-01-29 Thread Lowe Schmidt
/etc/puppet/modules is available for all environments (if I am not
mistaken).


--
Lowe Schmidt | +46 723 867 157

On 29 January 2016 at 10:43, James Green  wrote:

> jamesg@puppet-master:/etc/puppet$ sudo puppet module list --environment
> tools_office
> /etc/puppet/environments/tools_office/modules
> └── garethr-docker (v4.1.1)
> /etc/puppet/modules
> ├── AlexCline-dirtree (v0.2.1)
> ├── AlexCline-fstab (v0.5.4)
> [ lots of others ]
>
> Why does puppet list the modules in the other environments? Is it a bug?
>
> Version: 3.8.5
>
> Thanks,
>
> James
>
> --
> 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/CAMH6%2BaymZc6Qqb00Bn_-DBwpfvg6F8iQA2cMWdVV6heRMcjHhQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/puppet-users/CAMH6%2BaymZc6Qqb00Bn_-DBwpfvg6F8iQA2cMWdVV6heRMcjHhQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> 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/CAC-wWcSqjRkbrqQQfrZ6qVJoOHPDJO3i%3DsVuuhJjXVg9W8fJ3w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] bizarro error when starting a puppet agent

2016-02-09 Thread Lowe Schmidt
etckeeper is a tool for managing /etc with a RCS and is not part of the
Puppet distribution itself.
It tries to do a commit every time something changed on the filesystem and
it is failing to do that, I suggest talking to the team that set up the
machines about how they use etckeeper first

Regards,

--
Lowe Schmidt | +46 723 867 157

On 5 February 2016 at 23:13, Christopher Wood 
wrote:

> It may be useful to provide them with a puppet manifest which configures
> most of the puppet agent. If all they need to do is "yum install puppet;
> puppet apply file.pp" that might simplify things from both ends.
>
> On Fri, Feb 05, 2016 at 10:00:14PM +, Peter Berghold wrote:
> >Just the questions you asked prompted me to ask my operators more
> >questions.   Seems instructions were not followed when they configured
> >Puppet so a quick correction solved the problem.  Thanks.
> >On Fri, Feb 5, 2016 at 3:54 PM Peter Berghold <[1]
> salty.cowd...@gmail.com>
> >wrote:
> >
> >  Puppet version: 3.7.2
> >  OS Family:  RHEL
> >  lsbdistdescription => Red Hat Enterprise Linux Server release 6.5
> >  (Santiago)
> >  On Fri, Feb 5, 2016 at 2:10 PM Matthaus Owens
> >  <[2]matth...@puppetlabs.com> wrote:
> >
> >Peter,
> >To allow us to be more helpful, it would be great if you could
> include
> >which version of puppet you are installing and from where. From
> the
> >problem you describe, I imagine you are installing from debian or
> >ubuntu.
> >They include 2 files in their
> package /etc/puppet/etckeeper-commit-pre
> >and /etc/puppet/etckeeper-commit-post that are referenced in the
> >puppet.conf that ships with the package. It looks like etckeeper
> is
> >designed to allow someone to version control the etc directory
> >([3]https://joeyh.name/code/etckeeper/). The error you're seeing
> >indicates that the file doesn't exist, so there are 2 options to
> >resolve it.
> >1. Edit /etc/puppet/puppet.conf to remove or disable the
> >prerun_command and postrun_command settings.
> >2. Reinstall the package to try to get the etckeeper-commit-post
> file
> >back (this assumes you are using the debian/ubuntu puppet
> packages)
> >Another option would be to use the Puppet Labs' apt repositories
> >instead of debian/ubuntu. We don't ship with those settings on by
> >default in our packages.
> >HTH
> >On Fri, Feb 5, 2016 at 8:18 AM, Peter Berghold
> ><[4]salty.cowd...@gmail.com> wrote:
> >
> >  First a disclaimer:   I am trying to provide support for our
> >  production team setting up a system as a Puppet agent node and
> most
> >  of the work I'm doing is being handled with the operations team
> >  acting as my voice operated keyboards.
> >  I handed my operations team instructions on how to install a
> Puppet
> >  client on some of our production boxes.  One such box when
> running
> >  the agent for the first time issues the following error and the
> run
> >  fails:
> >  "Error: Could not run command from postrun_command: Execution of
> >  '/etc/puppet/etckeeper-commit-post' retur ned 1: Error: Could
> not
> >  execute posix command: No such file or directory -
> >  /etc/puppet/etckeeper-commit-post"
> >  Never saw this error before and I'm quite baffled by it.  Where
> is
> >  this coming from and what is Puppet trying to tell me?
> >  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 [5]puppet-users+unsubscr...@googlegroups.com.
> >  To view this discussion on the web visit
> >  [6]
> https://groups.google.com/d/msgid/puppet-users/CAArvnv2zJrNqO_W3wgeAjWiFmJ%3D%2BJzyohg_is4SQ1_SU153%2BoA%40mail.gmail.com
> .
> >  For more options, visit [7]https://groups.google.com/d/optout.
> >
> >--
> >Matthaus Owens
> >Puppet Labs
> >
> >--
> >You received this message because you are subscribed to the Google
> >Groups "Puppet Users" group.
> >  

Re: [Puppet Users] Monitoring file system and cleanup with puppet

2016-02-17 Thread Lowe Schmidt
No, and you should probably not use Puppet to try and solve that kind of
problem.

You could probably write a script and run it from cron if you need a quick
ad hoc solution.

--
Lowe Schmidt | +46 723 867 157

On 17 February 2016 at 02:35,  wrote:

> Hi All,
>
> Is there any way we can monitor the file system (disk usage percentage)
> and if it cross >90% run a particular script to purge it without using
> nagios in puppet?
>
>
>
> Thanks,
>
> --
> 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/128d712f-fad5-4eb7-86f9-89c9f3e64c79%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/128d712f-fad5-4eb7-86f9-89c9f3e64c79%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAC-wWcSqfXPSmyVOnN%3DN5uUtFTXr6FBZPV_1-hsMWg-WPjaHOw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] SOA Infra getting skipped while RCU creation

2016-02-18 Thread Lowe Schmidt
1. How do you run puppet?
2. Please show us the code for the puppet module you are using, and the
profile/role you are using to configure the node.
3. The log does not seem to be related to Puppet, but to SOA BPEL, are you
sure this is the log from Puppet?

--
Lowe Schmidt | +46 723 867 157

On 18 February 2016 at 10:16,  wrote:

> Hello everyone,
>
> I am trying to create SOA BPEL domain and while running the puppet script,
> it is skipping creating the SOAINFRA schema.
>
>
> *Log*
>
>
> Info: rcu_status compare output NotFound with prefix DEVOHPBPEL
>
> Info: RCU present
>
> Info: rcu statement: /u01/oracle/product/fmw1213/oracle_common/bin/rcu
> -silent -createRepository -databaseType ORACLE -connectString
> scrbdevdk003655.crb.apmoller.net:1521/OHP_SOA_DEV -dbUser sys -dbRole
> SYSDBA -schemaPrefix DEVOHPBPEL -component MDS -component IAU -component
> IAU_APPEND -component IAU_VIEWER -component OPSS -component WLS -component
> UCSCC -component UCSUMS -component UMS -component ESS -component SOAINFRA
> -component MFT  -f < /u01/install/rcu_passwords_soa_create_DEVOHPBPEL.txt
>
> Info: RCU result:
>
> Processing command line 
>
> Repository Creation Utility - Checking Prerequisites
>
> Checking Global Prerequisites
>
> Skipping UCSCC component as config or storage file is missing for the
> component.
>
> Skipping UMS component as config or storage file is missing for the
> component.
>
> Skipping ESS component as config or storage file is missing for the
> component.
>
> Skipping SOAINFRA component as config or storage file is missing for the
> component.
>
> Skipping MFT component as config or storage file is missing for the
> component.
>
>
>
>
> Can someone please help me why this is happening?
>
>
> Thanks
>
> Meenu
>
> --
> 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/4c3638e5-2296-4a78-bad3-31bebc217791%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/4c3638e5-2296-4a78-bad3-31bebc217791%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAC-wWcTmExnegrdN1t-CQ9G5Hd019bfHfyGVFUpq1sezKG0Zjw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Announce: A REPL for the puppet language

2016-02-20 Thread Lowe Schmidt
What version of ruby are you targeting?

Running Ruby 2.3.0 gave me this.

´´´
/Users/lsc/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/puppet-3.8.5/lib/puppet/vendor/safe_yaml/lib/safe_yaml/syck_node_monkeypatch.rb:42:in
`': uninitialized constant Syck (NameError)
from
/Users/lsc/.rbenv/versions/2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in
`require'
from
/Users/lsc/.rbenv/versions/2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in
`require'
from
/Users/lsc/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/puppet-3.8.5/lib/puppet/vendor/safe_yaml/lib/safe_yaml.rb:197:in
`'
from
/Users/lsc/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/puppet-3.8.5/lib/puppet/vendor/safe_yaml/lib/safe_yaml.rb:132:in
`'
from
/Users/lsc/.rbenv/versions/2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in
`require'
from
/Users/lsc/.rbenv/versions/2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in
`require'
from
/Users/lsc/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/puppet-3.8.5/lib/puppet/vendor/require_vendored.rb:4:in
`'
from
/Users/lsc/.rbenv/versions/2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in
`require'
from
/Users/lsc/.rbenv/versions/2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in
`require'
from
/Users/lsc/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/puppet-3.8.5/lib/puppet/vendor.rb:40:in
`require_libs'
from
/Users/lsc/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/puppet-3.8.5/lib/puppet/vendor.rb:53:in
`load_vendored'
from
/Users/lsc/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/puppet-3.8.5/lib/puppet.rb:174:in
`'
from
/Users/lsc/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/puppet-3.8.5/lib/puppet.rb:29:in
`'
from
/Users/lsc/.rbenv/versions/2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:127:in
`require'
from
/Users/lsc/.rbenv/versions/2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:127:in
`rescue in require'
from
/Users/lsc/.rbenv/versions/2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:40:in
`require'
from
/Users/lsc/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/puppet-repl-0.0.1/lib/puppet-repl/cli.rb:1:in
`'
from
/Users/lsc/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/puppet-repl-0.0.1/lib/puppet-repl.rb:1:in
`require_relative'
from
/Users/lsc/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/puppet-repl-0.0.1/lib/puppet-repl.rb:1:in
`'
from
/Users/lsc/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/puppet-repl-0.0.1/bin/prepl:3:in
`require_relative'
from
/Users/lsc/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/puppet-repl-0.0.1/bin/prepl:3:in
`'
from /Users/lsc/.rbenv/versions/2.3.0/bin/prepl:22:in `load'
from /Users/lsc/.rbenv/versions/2.3.0/bin/prepl:22:in `'
´´´

--
Lowe Schmidt | +46 723 867 157

On 20 February 2016 at 00:25, Rich Burroughs  wrote:

> Wow! I can't wait to have a look at this.
>
>
> Rich
>
> On Fri, Feb 19, 2016 at 3:04 PM Corey Osman  wrote:
>
>> Hi,
>>
>> I created a REPL for the puppet language this week. This is something
>> that has been lacking for quite some time.
>>
>>
>> https://github.com/nwops/puppet-repl
>>
>> Install: gem install puppet-repl
>> bash$ prepl
>>
>>
>> It is currently at version 0.0.1 but is still very functional.
>>
>>
>> MacBook-Pro-2~ % prepl
>> Puppet Version: 4.2.2
>> Puppet Repl Version: 0.0.1
>> Created by: NWOps 
>> Type "exit", "functions", "types", "reset", "help" for more information.
>>
>> >> $hostname = 'node123.company.com'
>>  => node123.company.com
>> >> $hostname =~ /node/
>>  => true
>> >> split($hostname, 'node')
>>  => ["", "123.company.com"]
>> >> ['/tmp/test1', '/tmp/test2'].each |String $file_path| {
>> file{$file_path: ensure => present}}
>>  => ["/tmp/test1", "/tmp/test2"]
>> >> ['/tmp/test1', '/tmp/test2'].each |String $file_path| {
>> file{$file_path: ensure => present}}
>>  => Evaluation Error: Error while evaluating a Resource Statement,
>> Duplicate declaration: File[/tmp/test1] is already declared in file :1;
>> cannot redeclare at line 1 at line 1:57
>> >>
>>
>>
>>
>> Corey
>>
>>
>>
>> --
>> 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-user

Re: [Puppet Users] Re: Announce: A REPL for the puppet language

2016-02-21 Thread Lowe Schmidt
I have the AIO package, but I havent pruned my rbenv environments. My bad

--
Lowe Schmidt | +46 723 867 157

On 21 February 2016 at 04:26, Jo Rhett  wrote:

> Puppet 4 is only supported with the all-in-one packaged Ruby. You don’t
> choose your own.
>
> On Feb 20, 2016, at 6:10 PM, Corey Osman  wrote:
>
> The gem requires puppet 3.8+.  So whatever version of ruby puppet runs on
> is supported by puppet-repl.
>
> If you want to run ruby 2.3 I would suggest using puppet 4.3+.   But I am
> not even sure puppet 4.3 runs on ruby 2.3 yet.
>
> On Friday, February 19, 2016 at 3:04:39 PM UTC-8, Corey Osman wrote:
>>
>> Hi,
>>
>> I created a REPL for the puppet language this week. This is something
>> that has been lacking for quite some time.
>>
>>
>> https://github.com/nwops/puppet-repl
>>
>> Install: gem install puppet-repl
>> bash$ prepl
>>
>>
>> It is currently at version 0.0.1 but is still very functional.
>>
>>
>> MacBook-Pro-2~ % prepl
>> Puppet Version: 4.2.2
>> Puppet Repl Version: 0.0.1
>> Created by: NWOps 
>> Type "exit", "functions", "types", "reset", "help" for more information.
>>
>> >> $hostname = 'node123.company.com'
>>  => node123.company.com
>> >> $hostname =~ /node/
>>  => true
>> >> split($hostname, 'node')
>>  => ["", "123.company.com"]
>> >> ['/tmp/test1', '/tmp/test2'].each |String $file_path| {
>> file{$file_path: ensure => present}}
>>  => ["/tmp/test1", "/tmp/test2"]
>> >> ['/tmp/test1', '/tmp/test2'].each |String $file_path| {
>> file{$file_path: ensure => present}}
>>  => Evaluation Error: Error while evaluating a Resource Statement,
>> Duplicate declaration: File[/tmp/test1] is already declared in file :1;
>> cannot redeclare at line 1 at line 1:57
>> >>
>>
>>
>>
>> Corey
>>
>>
>>
>>
> --
> 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/a0f8f102-10db-4eec-9862-6d162b718ed5%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/a0f8f102-10db-4eec-9862-6d162b718ed5%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> Jo Rhett
> Net Consonance : net philanthropy to improve open source and
> internet projects.
>
> --
> 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/FBE71E5F-0EF8-479E-957F-B7845573AE9D%40netconsonance.com
> <https://groups.google.com/d/msgid/puppet-users/FBE71E5F-0EF8-479E-957F-B7845573AE9D%40netconsonance.com?utm_medium=email&utm_source=footer>
> .
>
> 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/CAC-wWcQDaHWBdt%2BKrtQUKFecr9rgwJF7TGXw9Cn9P-y1m0U04A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Proper (or elegant) way to handle doing some based on contents of a file.

2016-02-23 Thread Lowe Schmidt
My suggestion would be to convert that file to a custom/external fact, and
then in your manifests write an if statement, adding the correct cron{} for
the matching fact.



--
Lowe Schmidt | +46 723 867 157

On 22 February 2016 at 23:28, Scott Walker  wrote:

> I'm slowly getting up to speed on puppet (coming over from chef but
> honestly haven't used either in probably 3 years so I'm relearning the
> learning curve.).
>
> We are using puppet 3.7.1 on our hosts, what I am trying to do is this.
>
> I have a file /etc/install-class which when we kickstart a machine
> depending on what you choose will result in this file having CLASS="some
> string"
>
> I am trying to find the "proper" way to create a cron job based on this
> file.
>
> IE: if /etc/install-class == CLASS=render then create a cron job otherwise
> do nothing.
>
> I know I can hackily get around this with doing it in bash and a onlyif
> exec statement. But running a shell, then running grep, is expensive
> timewise (yes yes, only a few ms but when trying to get machines built ASAP
> ms add up).
>
> I've done a lot of digging today but I can't seem to figure out an elegant
> way to make this work without involving a few modules written by people
> (I'm not adverse to using modules but I don't like using a module to do
> something rather simple.. or at least what I consider something simple).
>
> Some thoughts? And thanks in advance for the help.
>
> --
> 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/c73e8467-e567-425c-a896-f56ff58ef33d%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/c73e8467-e567-425c-a896-f56ff58ef33d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAC-wWcS_7gkiuT2rG2shP3J90dh_w262VnPDxaS3KNf4BwVuhw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] puppet 8140 port is not listening

2016-02-29 Thread Lowe Schmidt
On 29 February 2016 at 16:09,  wrote:

> *Warning: Connection refused - connect(2) for
> "245.77.154.104.bc.googleusercontent.com
> <http://245.77.154.104.bc.googleusercontent.com>" port 8140*
>

Is the puppetmaster up and listening on that name?


--
Lowe Schmidt | +46 723 867 157

-- 
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/CAC-wWcSjaUJ36R1h3zLcu%2BARUn4W3dD5OYm%2BS7nu2URq9FX-dA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] unable to create home directory

2016-03-29 Thread Lowe Schmidt
> Notice: /Stage[main]/Ssh/Ssh_authorized_key[admin]/ensure: created
> Debug: Creating /home/admin/.ssh
> Error: /Stage[main]/Ssh/Ssh_authorized_key[admin]: Could not evaluate: No
such file > or directory - /home/admin/.ssh

Well, does the directory /home/admin/.ssh exist?

--
Lowe Schmidt | +46 723 867 157

On 29 March 2016 at 16:44, Patrick G.  wrote:

> Hi,
>
> I am using # puppet-module-ssh
>
> In the yaml file I have:
>
> ssh::keys:
>   admin:
> ensure: present
> user: admin
> type: dsa
> key: ...==
>
> But when running puppet agent I get:
>
> Notice: /Stage[main]/Ssh/Ssh_authorized_key[admin]/ensure: created
> Debug: Creating /home/admin/.ssh
> Error: /Stage[main]/Ssh/Ssh_authorized_key[admin]: Could not evaluate: No
> such file or directory - /home/admin/.ssh
>
>
>
> --
> 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/892b9b3a-30b3-47e5-8c0f-1e52a2309179%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/892b9b3a-30b3-47e5-8c0f-1e52a2309179%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAC-wWcRByycxjrkvWMWrOhX7EiVGLxrsQ7z2zx8m8%3DBt7Wc6Mg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] unable to create home directory

2016-03-31 Thread Lowe Schmidt
Are you creating the user with puppet or do you have something like LDAP or
AD that manages users and access for you?



--
Lowe Schmidt | +46 723 867 157

On 31 March 2016 at 14:13, Patrick G.  wrote:

> /home does exists but /home/admin doesn’t because it is a new user.
>
> How should I give puppet permission to create this directory?
>
> On 31 mrt. 2016, at 13:14, Chad Huneycutt 
> wrote:
>
> That is actually where it is failing. Does /home and /home/admin exist?
> Does puppet have permission to create it?
>
>
> On Thursday, March 31, 2016, Patrick G.  wrote:
>
>> Nope …
>> With new users this should create the directory.
>>
>> The debug log shows:
>>
>> Debug: Creating /home/admin/.ssh
>>
>>
>> But it doesn’t create it.
>>
>> Gr. Patrick.
>>
>> On 29 mrt. 2016, at 17:09, Lowe Schmidt  wrote:
>>
>> > Notice: /Stage[main]/Ssh/Ssh_authorized_key[admin]/ensure: created
>> > Debug: Creating /home/admin/.ssh
>> > Error: /Stage[main]/Ssh/Ssh_authorized_key[admin]: Could not evaluate:
>> No such file > or directory - /home/admin/.ssh
>>
>> Well, does the directory /home/admin/.ssh exist?
>>
>> --
>> Lowe Schmidt | +46 723 867 157
>>
>> On 29 March 2016 at 16:44, Patrick G.  wrote:
>>
>>> Hi,
>>>
>>> I am using # puppet-module-ssh
>>>
>>> In the yaml file I have:
>>>
>>> ssh::keys:
>>>   admin:
>>> ensure: present
>>> user: admin
>>> type: dsa
>>> key: ...==
>>>
>>> But when running puppet agent I get:
>>>
>>> Notice: /Stage[main]/Ssh/Ssh_authorized_key[admin]/ensure: created
>>> Debug: Creating /home/admin/.ssh
>>> Error: /Stage[main]/Ssh/Ssh_authorized_key[admin]: Could not evaluate:
>>> No such file or directory - /home/admin/.ssh
>>>
>>>
>>>
>>>
>>> --
>>> 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/892b9b3a-30b3-47e5-8c0f-1e52a2309179%40googlegroups.com
>>> <https://groups.google.com/d/msgid/puppet-users/892b9b3a-30b3-47e5-8c0f-1e52a2309179%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> 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/CAC-wWcRByycxjrkvWMWrOhX7EiVGLxrsQ7z2zx8m8%3DBt7Wc6Mg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/puppet-users/CAC-wWcRByycxjrkvWMWrOhX7EiVGLxrsQ7z2zx8m8%3DBt7Wc6Mg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> 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/3BE51F3A-023A-46F8-AF09-881F68CA5E92%40gmail.com
>> <https://groups.google.com/d/msgid/puppet-users/3BE51F3A-023A-46F8-AF09-881F68CA5E92%40gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> --
> Chad M. Huneycutt
>
> --
> 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/CAOJfo14KifBoF3pF0ZF8R1Ksweg1w_Ywws7vMYyhPrzMs_btPQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/puppet-users/CAOJfo14KifBoF3pF0ZF8R1Ksweg1w_Ywws7vMYyhPrzMs_btPQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout