[Puppet Users] Re: inlined-epp with hash

2020-09-10 Thread Andreas Dvorak
=<%= $database_conf[$key]['oracle_cms_jdbc_driver'] %> <% } -%> Andreas Dvorak schrieb am Donnerstag, 10. September 2020 um 08:10:26 UTC+2: > Hi, > > I have this structure in hiera and want to use it in a inlined-epp file > > > > > > > > &

[Puppet Users] inlined-epp with hash

2020-09-09 Thread Andreas Dvorak
Hi, I have this structure in hiera and want to use it in a inlined-epp file *cms::params::database_conf: 'oracle_cms_dev':oracle_cms_jdbc_schema: 'CMS_DEV'oracle_cms_jdbc_user: 'CMS_DEV'oracle_cms_jdbc_driver: 'oracle.jdbc.OracleDriver'oracle_cms_jdbc_url: 'jdbc:oracle

Re: [Puppet Users] Deferred without result

2020-06-15 Thread Andreas Dvorak
Hi, > > I have Puppet Agent v6.14.0. and puppetserver version: 6.10.0. Do I need to update? Andreas -- 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

[Puppet Users] Re: puppetserver - Performance and tuning

2020-06-15 Thread Andreas Dvorak
Hi, according to https://puppet.com/docs/puppetserver/latest/config_file_puppetserver.html the maximum of max-active-instances is 4. max-active-instances: Optional. The maximum number of JRuby instances allowed. The default is ‘num-cpus - 1’, with a minimum value of 1 and a maximum value of 4

[Puppet Users] Deferred without result

2020-06-15 Thread Andreas Dvorak
Hello, I am trying to use the deferred function according to the page http://puppet-on-the-edge.blogspot.com/2018/10/the-topic-is-deferred.html My code does not show the time. Does anybody has a solution? notify {"time_now": message => Deferred('new', [TimeStamp]) } $d = Deferred('new', [Tim

Re: [Puppet Users] puppet 6 facter -p Thread.exclusive is deprecated, use Thread::Mutex

2019-04-09 Thread Andreas Dvorak
Great thank you. Years ago we created the fact. Am Freitag, 5. April 2019 18:54:04 UTC+2 schrieb Josh Cooper: > > > On Thu, Apr 4, 2019 at 11:45 PM Andreas Dvorak > wrote: > >> Hi, >> >> I have installed a new server with puppet 6. >> >> I get these

[Puppet Users] puppet 6 facter -p Thread.exclusive is deprecated, use Thread::Mutex

2019-04-04 Thread Andreas Dvorak
Hi, I have installed a new server with puppet 6. I get these errors with facter. Can somebody please help me? facter -v 3.13.1 (commit 4e1df48f76caa0eaeee90af4239a1df450d45cd7) facter -p osmajorrelease Thread.exclusive is deprecated, use Thread::Mutex /opt/puppetlabs/puppet/cache/lib/facter/me

Re: [Puppet Users] After mcollective update agent does not work anymore

2017-10-23 Thread Andreas Dvorak
thank you that was great help the rpm puppet-agent bringt the ruby version 2.1 /opt/puppetlabs/puppet/bin/ruby -e 'p $:' ["/opt/puppetlabs/puppet/lib/ruby/site_ruby/2.1.0", "/opt/puppetlabs/puppet/lib/ruby/site_ruby/2.1.0/x86_64-linux", "/opt/puppetlabs/puppet/lib/ruby/site_ruby", "/opt/pupp

Re: [Puppet Users] After mcollective update agent does not work anymore

2017-10-20 Thread Andreas Dvorak
pr0cess is installed. The older mcollective works fine with that location. >rpm -ql ruby-pr0cess /usr/lib/ruby/site_ruby/1.8 /usr/lib64/ruby/site_ruby/1.8/x86_64-linux /usr/lib64/ruby/site_ruby/1.8/x86_64-linux/pr0cess.so Do you know how to configure the location to the file or should I be it to

Re: [Puppet Users] After mcollective update agent does not work anymore

2017-10-19 Thread Andreas Dvorak
Hi, thank you. That is a good tip. The log says: D, [2017-10-19T12:50:04.972364 #13809] DEBUG -- : agents.rb:104:in `block in findagentfile' Found ehyp at /usr/libexec/mcollective/mcollective/agent/ehyp.rb D, [2017-10-19T12:50:04.972530 #13809] DEBUG -- : pluginmanager.rb:167:in `loadclass' Lo

[Puppet Users] After mcollective update agent does not work anymore

2017-10-19 Thread Andreas Dvorak
Dear all, I have an self written mcollective agent that does nocht work anymore, after the Puppet und MCollective update. All other agents are working. Does anybody has an idea? The client is running: mcollective 2.6.0 puppet 3.7.1 Centos 6 locate ehyp.rb /usr/local/libexec/mcollective/mcollec

[Puppet Users] Puppet 4 logging

2017-01-18 Thread Andreas Dvorak
Dear all, we are currently updating to Puppet Agent 4 (puppet-agent-1.8.2-1.el7.x86_64), but we don´t have an agent log. How do I activate the Agent log? With Puppet 3 we configured to create the Puppet Agent log (/var/log/puppet/puppet_agent.log) The file is written by the configuration >cat

[Puppet Users] Re: get one file with all server in puppet (export resource)

2016-06-24 Thread Andreas Dvorak
Thank you for the answer. That will take some time to understand. Andreas -- 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.

[Puppet Users] Re: get one file with all server in puppet (export resource)

2016-06-23 Thread Andreas Dvorak
Hi, now I have change it a little, but it still does not work. class check_mk::agent::serverlist { @@server_list { "$::hostname": filename => '/tmp/checkmkhosts', } define server_list ( $filename ) { ensure_resource ( 'file', $filename, {} ) } } class check_mk::server::serverli

[Puppet Users] get one file with all server in puppet (export resource)

2016-06-22 Thread Andreas Dvorak
Dear all I would like to generate one file on a certain server with the hostname of all server that have puppet. But the collection of the hosts does not work. First try with the error duplicate resource class check_mk::agent::serverlist { @@file { '/tmp/checkmkhosts': content => "$::hostnam

Re: [Puppet Users] Could not find default node or by name with 'vm7012.muc.baag, if not defined in manifests/node.pp

2016-03-31 Thread Andreas Dvorak
Hi Chad, thank that is the solution. Andreas -- 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 discussi

[Puppet Users] Could not find default node or by name with 'vm7012.muc.baag, if not defined in manifests/node.pp

2016-03-31 Thread Andreas Dvorak
Dear all if I do not list a server in the directory manifests e.g. in nodes.pp the agent says: puppet agent -t Info: Retrieving pluginfacts Info: Retrieving plugin Info: Loading facts Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find default node or by nam

[Puppet Users] Re: server not listed in manifests, but gets catalog

2016-01-11 Thread Andreas Dvorak
Hi, now I understand. Thank you. Andreas -- 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

[Puppet Users] server not listed in manifests, but gets catalog

2016-01-11 Thread Andreas Dvorak
Hi, after the update of the puppet master from 3.3.1 to 3.6.2 a host gets a catalog even if it is not defined in manifests. Is this a new funcationality? I did not see anything in the release notes. It gets a catalog with all the information from profiles::base manifests/ cat site.pp node defau

[Puppet Users] read dir of classes.txt in ruby script

2015-12-09 Thread Andreas Dvorak
Dear all, I would like to get the directory of the classfile. But I would like to use the puppet config print classfile. Currently my scripts looks like that. require 'facter' Facter.add(:puppet_classes) do setcode do dir = Facter.value('puppet_vardir') lines_array = IO.readlines("#{d

Re: [Puppet Users] Puppet with Foreman for reports but noch ENC

2015-10-23 Thread Andreas Dvorak
Hi Toni, thank you for the tip. That is an eays way to solve my problem. Andreas -- 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...@googl

Re: [Puppet Users] Puppet with Foreman for reports but noch ENC

2015-10-21 Thread Andreas Dvorak
Hi, thank you I will remove the two lines external_nodes = /etc/puppet/node.rb node_terminus = exec from the puppet.conf file. Andreas Am Dienstag, 20. Oktober 2015 18:41:54 UTC+2 schrieb David Schmitt: > > Hi Andreas, > > On 20/10/2015 13:48, Andreas Dvorak wrote

[Puppet Users] Puppet with Foreman for reports but noch ENC

2015-10-20 Thread Andreas Dvorak
Hello, currently I am running a Puppet Master with Foreman for reports and ENC and I have only one environment. The environment parameter in the file puppet.conf is not used because Foreman is an ENC. Now I want to configure different environments and want to set the environment in the puppet.c

Re: [Puppet Users] puppet local environment doesn't match server specified node environment switching agent to

2015-09-22 Thread Andreas Dvorak
Hi, now I found out that I need to create the new windows environment in The Foreman. Than I change the server in The Foreman from production to windows. Thank you. Andreas -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe fro

Re: [Puppet Users] puppet local environment doesn't match server specified node environment switching agent to

2015-09-22 Thread Andreas Dvorak
> > Hi, > I am using Puppet 3.6.2 free version. The node classification is done by the node.pp file. I do not understand the group. Where does the Puppet Master do the overwritting of the environment? Andreas > -- You received this message because you are subscribed to the Google Groups "P

[Puppet Users] puppet local environment doesn't match server specified node environment switching agent to

2015-09-22 Thread Andreas Dvorak
Hi, I have created a new environment for windows server, but the agent does not use it. Can somebody please help me? message on agent run: puppet local environment windows doesn't match server specified node environment switching agent to production puppet.conf of windows agent [main]

Re: [Puppet Users] how to use file resource with source file name unknown

2015-07-08 Thread Andreas Dvorak
Hi, thank for the help. I have solved the issue with the generate funktion. $redhatfiles = generate("/bin/bash","-c","/bin/ls /data/git/${zweig}/modules/networking/files/${::hostname}/network-scripts 2>/dev/null | tr -t '\n' ':'") $redhat_interfaces = split($redhatfiles, ":") r

[Puppet Users] how to use file resource with source file name unknown

2015-07-07 Thread Andreas Dvorak
Hello, I have a module to copy files /etc/hostname.* in Solaris. But the interface name can be any. e.g. networking/file/vm6742/hostname.e1000g0 networking/file/vm6742/hostname.e1000g1 I do not want to user file with recurse because the files in /etc have different permissions. Is it possible

[Puppet Users] Re: how to access fact with host specific name like zone_vm5809_iptype

2015-07-03 Thread Andreas Dvorak
Thank you that is nice -- 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

[Puppet Users] how to access fact with host specific name like zone_vm5809_iptype

2015-07-02 Thread Andreas Dvorak
Dear all, I would like to use the fact zone_vm5809_iptype, but vm5809 is specific to the host vm5809. If this fact on any host is excl do something Can somebody please help me? I have tried: if ( $::zone_${::hostname}_iptype == 'excl') Could not match ${::hostname}_iptype or $hostname = $::host

[Puppet Users] Puppet 3.6.2 puppet parser validate failed pre-receive One or more file(s) specified did not exist

2015-03-26 Thread Andreas Dvorak
Dear all, after the update of the Pupppet Master from 3.3.1 to 3.6.2 the git push with a pre-receive hook does not work. My local check does work. In my pre-commit I have the same checks. Is it possible that the git pre-receive hook does not find the file in source? Why does it work in version

[Puppet Users] Re: delete line in file with substring xyz

2015-02-27 Thread Andreas Dvorak
27;" } Best regards Andreas Am Donnerstag, 26. Februar 2015 15:52:22 UTC+1 schrieb jcbollinger: > > > > On Thursday, February 26, 2015 at 2:39:51 AM UTC-6, Andreas Dvorak wrote: >> >> Hi, >> >> I have just tried the stdlib version 4.5.1. >> According

[Puppet Users] Re: delete line in file with substring xyz

2015-02-26 Thread Andreas Dvorak
Hi, I have just tried the stdlib version 4.5.1. According to the change log with version 4.5.0 "Don't require line to match the match parameter" But my test does not work file_line {'test': ensure => 'absent', path => '/root/.ssh/authorized_keys', match => 'test', } Error: Fail

[Puppet Users] Re: delete line in file with substring xyz

2015-02-26 Thread Andreas Dvorak
Dear all now I tried file_line {'test': ensure => 'absent', path => '/root/.ssh/authorized_keys', line => 'test', } Line ssh-rsa SNNwKzN/c1JmSlYOy4hK1yYsOJKOK+n5Vivt3DJGwxL3VpU= test@abc is still there With file_line {'test': ensure => 'absent', path => '/root/.s

[Puppet Users] delete line in file with substring xyz

2015-02-25 Thread Andreas Dvorak
Dear all I would like to use the stdlib Modul with file_line to delete a line that matches *xyz*. But the resource file_line {'delete line': ensure => absent, path => '/etc/file', line => '*xyz*', } or file_line {'delete line': ensure => absent, path => '/etc/file', match =>

[Puppet Users] Re: Solaris package installation unattended does not work

2015-02-20 Thread Andreas Dvorak
Hi John, thank you for you help. Now it is working. Andreas -- 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

[Puppet Users] Solaris package installation unattended does not work

2015-02-19 Thread Andreas Dvorak
Dear all I am trying to install a Solaris package but it does work. Puppet uses -n to run unattended, but interaction is required. package{'CSWpkgutil': ensure => installed, source => "http://sv2653/repo/solaris/CSWpkgutil-${::hardwareisa}.pkg";, } Error message: Execution

[Puppet Users] Re: how to get notified when puppet fact has some values

2014-11-04 Thread Andreas Dvorak
Hi, you can check it on the server with facter -p name_of_fact in a class notify{"My fact: $::name_of_fact":} Andreas -- 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 e

Re: [Puppet Users] Re: Dynamic Environments and Hiera

2014-11-04 Thread Andreas Dvorak
Thank you for the information. Now I have got a solution. class facts::app_fact( $app = hiera('app_fact',undef) ){ file{'/etc/facter': ensure => directory, owner => 'root', group => 'root', mode => '0755', } file{'/etc/facter/facts.d': ensure => directory, owne

Re: [Puppet Users] user ensure absent :No command localdelete defined for provider

2014-11-04 Thread Andreas Dvorak
Hi Nan, yes it really looks like that. I have puppet versin 3.3.1, but don't see an information in which version it is solved. Andreas -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails fr

[Puppet Users] Re: user ensure absent :No command localdelete defined for provider

2014-11-03 Thread Andreas Dvorak
Hi John, the OS is RedHat 5 and 6. Regards Andreas -- 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 disc

Re: [Puppet Users] Re: Dynamic Environments and Hiera

2014-11-03 Thread Andreas Dvorak
Hi, today I started working with roles in hiera, but somewhere must be something wrong. In my test I would like to install a special version of facter on the server vm6740 that does belong to my test role, but it is installed the version from the common.yaml cat hiera.yaml --- :backends: yaml

[Puppet Users] user ensure absent :No command localdelete defined for provider

2014-11-03 Thread Andreas Dvorak
Dear all, I have a modul accounts to create user. That is working fine. Today I would like to remove a user but it does not work. Unfortunately I don't understand the error. Can you please have a look? Error: No command localdelete defined for provider Error: /Stage[main]/Accounts/Accounts::Vi

Re: [Puppet Users] Puppet agent message: Could not retrieve local facts: Could not find fact 'define_fact'

2014-10-27 Thread Andreas Dvorak
Hi Wil, thank you. The restart was missing. So easy but I did not think about that. Andreas -- 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+unsubs

Re: [Puppet Users] schedule whole class and not only resources

2014-10-27 Thread Andreas Dvorak
Dear all, thank you for the responses. My class has serval different resources types. If there is no eays solution, it does not matter. Andreas -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving

Re: [Puppet Users] Re: Puppet agent message: Could not retrieve local facts: Could not find fact 'define_fact'

2014-10-24 Thread Andreas Dvorak
Hi, thank you for the answer. No I don't have multiple facter installed. find / -name facter /usr/bin/facter /usr/lib/ruby/site_ruby/1.8/facter /var/lib/puppet/lib/facter Andreas -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe f

[Puppet Users] Re: Puppet agent message: Could not retrieve local facts: Could not find fact 'define_fact'

2014-10-24 Thread Andreas Dvorak
After downgrade facter to 1.7.1 the error is gone. Then I did the update again and the error was back again. I have many server that already have the version 2.1, without an update. I don't understand why the update does not work. -- You received this message because you are subscribed to the G

[Puppet Users] Puppet agent message: Could not retrieve local facts: Could not find fact 'define_fact'

2014-10-23 Thread Andreas Dvorak
Dear all, since today the puppet agent does not work anymore if it is executed by service. I prints out: Could not retrieve local facts: Could not find fact 'define_fact' If I run puppet agent -t I do not get the message. I have updated facter from 1.7.1 to 2.1 and hiera from 1.2.1 to 1.3.4 I h

[Puppet Users] Re: resource file with option source or content depending if source does exist

2014-10-21 Thread Andreas Dvorak
Hi, thank you, the line content => $a ? { '' => template($template), default => $a } solves my problem. Best regards, Andreas -- 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, se

Re: [Puppet Users] resource file with option source or content depending if source does exist

2014-10-20 Thread Andreas Dvorak
Hi, no I habe a puppet master. Best regards, Andreas -- 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 di

[Puppet Users] resource file with option source or content depending if source does exist

2014-10-17 Thread Andreas Dvorak
Dear all, I would like to use the file resource to supply a host specific file. If it does exist choose it and if not create a file from a template. I tried this, but then /mnt/motd needs to be on all server. $a = file("/mnt/motd/motd-${::hostname}",'/dev/null') if($a != '') { file {$con

[Puppet Users] Re: how to transfer list of interfaces from hiera to class

2014-10-14 Thread Andreas Dvorak
Dear all, suddenly I found the solution: network_interface::device_list: eth0: ipaddr: 10.112.67.40 netmask: 255.255.0.0 eth1: ipaddr: 10.15.67.40 netmask: 255.255.0.0 class network_interface ( $device_list={} ){ create_resources('network_interface::managed_interface',$dev

[Puppet Users] how to transfer list of interfaces from hiera to class

2014-10-14 Thread Andreas Dvorak
Hi, I would like to create network interfaces with puppet. I have define network_interface::managed_interface( $device='', $gateway='', $hostname='', $hwaddr='', $ipaddr='', $netmask='', $network='', $up=true, ){ and class network_interface::create_interface ( $device = hiera(..

[Puppet Users] schedule whole class and not only resources

2014-10-01 Thread Andreas Dvorak
Dear all, I have a class with many resource that should only run at one certain time. I could add a schedule to every resource, but that is the same line at all the resources. Is there a solution to schedule the whole class at one place. something like this include abc { schedule } Best

[Puppet Users] schedule module according to certain server

2014-07-03 Thread Andreas Dvorak
Dear all, I have a modul to install the apache webserver and I have server with different maintainance time frames. So I can not create a schedule in the apache modul to install it a a certain time. Is it possible to combine the include apache with a schedule. For example the profile of server a

Re: [Puppet Users] package resource with pkgutil can not resolv dependencies

2014-05-08 Thread Andreas Dvorak
Hi Frederik, my solution is to install all packages separatly. This time is was not to much work, but with a package with more dependencies is is bad. Best regards, Andreas -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from t

Re: [Puppet Users] package resource with pkgutil can not resolv dependencies

2014-05-08 Thread Andreas Dvorak
Hi Frederik, the packages are all in the CSWsudo package. I tried /opt/csw/bin/pkgutil -y -i CSWsudo and it has the same dependency problem. But /opt/csw/bin/pkgutil -N -i CSWsudo does work. So I tried package {'CSWsudo': ensure=> installed, provide

Re: [Puppet Users] package resource with pkgutil can not resolv dependencies

2014-05-08 Thread Andreas Dvorak
Hi Frederik, /opt/csw/bin/pkgutil -a has the correct output common package catalog size libgcc SMClgcc346 3.4.61.8 MB libi

[Puppet Users] package resource with pkgutil can not resolv dependencies

2014-05-08 Thread Andreas Dvorak
Dear all I would like to install sudo vom opencsw. I have created one package with all the dependencies. I can install the package on the server without problems, but if I try to install the package with puppet it fails. Can somebody please help me? class: package {'CSWsudo':

[Puppet Users] Re: schedule resource user

2014-04-04 Thread Andreas Dvorak
I have made something wrong, now it does work Am Freitag, 4. April 2014 10:48:39 UTC+2 schrieb Andreas Dvorak: > > Dear all, > > I would like so schedule the resource user. > Sometime spezial user need a locally set password that should be reset hat > night. > > Unfort

[Puppet Users] schedule resource user

2014-04-04 Thread Andreas Dvorak
Dear all, I would like so schedule the resource user. Sometime spezial user need a locally set password that should be reset hat night. Unfortunately the resouce user does not have the option schedule. Does somebody have a solution for that? Best regards Andreas -- You received this message

[Puppet Users] Re: classe uses two defines but second is ignored

2014-02-17 Thread Andreas Dvorak
Hi John, thank you for your reply. You have found an other issue. But my main problem is that the second call of "replace" is ignored. I still do not understand the reason. Best regards, Andreas -- You received this message because you are subscribed to the Google Groups "Puppet Users" group.

[Puppet Users] classe uses two defines but second is ignored

2014-02-12 Thread Andreas Dvorak
Dear all, ich habe a defined class, that is called two times in on class but only the first call is executed. baader::replace {'access notConfigGroup' is done, but not baader::replace {'com2sec notConfigUser': And baader::replace {'view all included': is done. Can somebody please explain the rea

Re: [Puppet Users] Pupppet syslog "unrecognised escape sequence" in string

2014-02-04 Thread Andreas Dvorak
Hi, thank you I think I do understand it. Here is my solution exec{ '/bin/sed \'\#^/home#d\' /etc/auto_master > /tmp/sed.tmp.$$ && mv /tmp/sed.tmp.$$ /etc/auto_master' and it works Best regards, Andreas -- You received this message because you are subscribed to the Google Groups "Puppet Users

[Puppet Users] Pupppet syslog "unrecognised escape sequence" in string

2014-02-04 Thread Andreas Dvorak
Dear all, I have several exec resources that work fine, but the puppet master throws a syslog message "Unrecognised escape sequence \# in file /data/git/simulation/modules/base_modification/manifests/only_solaris.pp at line 14" 14: exec{ "/bin/sed '\#^/home#d' /etc/auto_master > /tmp/sed.tmp.

[Puppet Users] Re: Is there any other tool other than mcollective for orchestration..

2014-01-31 Thread Andreas Dvorak
Hi Derek, can you please explain who to build the Solaris package? Best regards Andreas Am Donnerstag, 7. Februar 2013 22:42:53 UTC+1 schrieb Derek Olsen: > > Rajeev. > > We run mcollective in a 100% Solaris shop. We have not encountered > any Solaris specific issues. Email me if you want t

[Puppet Users] Re: checking is package is installed ?

2014-01-30 Thread Andreas Dvorak
Hi, I think the explaination of Gareth is wrong. absend will uninstall a package I am using absend to uninstall package and here is a web site about that. http://www.puppetcookbook.com/posts/remove-package.html Best regards Andreas -- You received this message because you are subscribed to th

[Puppet Users] Re: checking is package is installed ?

2014-01-30 Thread Andreas Dvorak
Hi, I think the explaination of Kaustubh is wrong. absend will uninstall a package I am using absend to uninstall package and here is a web site about that. http://www.puppetcookbook.com/posts/remove-package.html Best regards Andreas -- You received this message because you are subscribed to

[Puppet Users] run or execute only by call with manually running agent

2014-01-30 Thread Andreas Dvorak
Hi all, I have an install routine that should never be executed by puppet automatically. But I would like to execute it sometimes by running something like this: puppet agent -t --ignoreschedules --tags never One idea is to create a schedule class never{ schedule { 'never': repeat => 0, }

Re: [Puppet Users] Re: file resource to provide serveral files

2014-01-27 Thread Andreas Dvorak
Hi, thank you now it is working. Best regards, Andreas -- 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

[Puppet Users] Re: file resource to provide serveral files

2014-01-24 Thread Andreas Dvorak
Hi, I am trying this. config.pp of module logrotate define logrotate::config{ case $::osfamily { redhat:{ file { "/etc/logrotate.d/${conf_file}": ensure => 'present', owner => 'root', group => 'root', mode => '0644', source => "puppet://${pup

[Puppet Users] file resource to provide serveral files

2014-01-24 Thread Andreas Dvorak
Dear all, with my class config.pp I would like to provide config file to /etc/logrotate.d. filename: config.pp class logrotate::config($conf_file){ case $::osfamily { redhat:{ file { "/etc/logrotate.d/${conf_file}": ensure => 'present', owner => 'root', group

Re: [Puppet Users] custom fact should not run on Solaris

2013-12-19 Thread Andreas Dvorak
Dear all thank you for helping me. My solution is this: require 'facter' Facter.add(:spacewalk) do confine :osfamily => "RedHat" f = File.new("/etc/sysconfig/rhn/up2date") text = f.read if text =~ /sv2653/ then setcode do "true" end else setcode do "false" end end

[Puppet Users] Puppet agent on Solaris no logging

2013-12-18 Thread Andreas Dvorak
Dear all, I have RedHat Server with Puppet and logging in /var/log/puppet But on Solaris it does not work. I am using the CSWpuppet3 3.3.1 Do you have an idea? cat /etc/puppet/puppet.conf # puppet.conf [main] logdir = /var/log/puppet confdir = /etc/opt/csw/puppet config = $confdir/p

[Puppet Users] custom fact should not run on Solaris

2013-12-18 Thread Andreas Dvorak
Dear all I have a module spacewalk with a custom fact to define if the server has been registered to spacewalk. The module should only run on RedHat server class profiles::base { ... case $::osfamily { redhat:{ include spacewalk include logrotate include postfix }

Re: [Puppet Users] puppet parser validate fails

2013-12-11 Thread Andreas Dvorak
Hi Jeff, thank you for the information. I think the "grep -v '^\s*import'" is working. First test are successfully. Best regards Andreas -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails

[Puppet Users] puppet parser validate fails

2013-12-10 Thread Andreas Dvorak
Dear all, In git I have a pre-receive script to checkt the puppet files. My git push comes with an error but if I run the same manually I get no error. Can anybody please help me? error message remote: Checking manifests/nodes.pp for syntax errors and styleguide compliance... remote: 'puppet

Re: [Puppet Users] Puppet agent does not start in Solaris zone

2013-12-02 Thread Andreas Dvorak
Dear all, I found the problem. The package needs to be installed in the global zone. It does not work if you install it only in the local zone. Best regards Andreas -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this grou

Re: [Puppet Users] Puppet agent messages with rsyslog

2013-11-27 Thread Andreas Dvorak
Hi, I solved it with this: if $programname == 'puppet-agent' and $syslogseverity <= '6' then /var/log/puppet/agent.log if $programname == 'puppet-agent' and $syslogseverity > '3' then ~ Regards, Andreas -- You received this message because you are subscribed to the Google Groups "Puppet Users

Re: [Puppet Users] Puppet agent messages with rsyslog

2013-11-26 Thread Andreas Dvorak
Hi, that info was nice to find out what syslogseverity the message "Finished catalog". It is 5. But I still do not understand why this message is send to the syslog server. According to the line if $programname == 'puppet-agent' and $syslogseverity <= '6' then /var/log/puppet/agent.log it should

[Puppet Users] Puppet agent messages with rsyslog

2013-11-26 Thread Andreas Dvorak
Dear all, I have Puppet 3.3.1 and rsyslog and RedHat 6. My problem is that I want to see the message "Finished catalog" only in the file /var/log/puppet/agent.log, but rsyslog sends it to the syslog server and than to netcool. It is also shown in /var/log/messages. I only want to see error messa

Re: [Puppet Users] Puppet agent does not start in Solaris zone

2013-11-18 Thread Andreas Dvorak
Hi Rich, the package installs CSWruby18 VERSION: 1.8.7p334,REV=2011.03.24 and that is supported. Andreas -- 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 pupp

Re: [Puppet Users] Puppet agent does not start in Solaris zone

2013-11-15 Thread Andreas Dvorak
Hi Rich, I tried /opt/csw/bin/puppet agent --test bash: /opt/csw/bin/puppet: /opt/csw/bin/ruby18: bad interpreter: Invalid argument But unfortunately that does not help me. Have you got any idea? Regards Andreas -- You received this message because you are subscribed to the Google Groups "Pu

[Puppet Users] Re: Puppet agent does not start in Solaris zone

2013-11-13 Thread Andreas Dvorak
Now I have tried the version puppet3 CSWpuppet3 3.1.1,REV=2013.03.15 780.4 KB from testing branch. but it has the same problem. Regards, Andreas -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from t

[Puppet Users] Puppet agent does not start in Solaris zone

2013-11-13 Thread Andreas Dvorak
Dear all the puppet agent does not want to start on my first Solaris zone. I have already Puppet on x86 server running. Can anybody please help me? I have created a package for Solaris 10 Sparc to use the puppet agent on a Solaris zone. /opt/csw/bin/pkgutil -a puppet common packa

[Puppet Users] Re: Resource file copy files recurse in existing directory with existing files

2013-10-22 Thread Andreas Dvorak
Dear all, now I have got the solution file { "/usr/local/nagios/libexec": ensure => present, owner => "nagios", group => "nagios", mode => 755, sourceselect => all, source => ["puppet:///extra_files/basisapplikationen/monitoring/nagios/client/custom-plugins

[Puppet Users] Re: Resource file copy files recurse in existing directory with existing files

2013-10-21 Thread Andreas Dvorak
Hi John, I add purge => false in the file /usr/local/nagios/libexec but it did not change anythink. I need to find out if I can put the files in an other directory. Thank you Andreas -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubsc

[Puppet Users] Resource file copy files recurse in existing directory with existing files

2013-10-21 Thread Andreas Dvorak
Hi, I have a file resource that brings files in the diretory "/usr/local/nagios/libexec" from source1 and I have a second resource file that should bring file in that same directory but from an other source. But the result is that only the files from file { "/usr/local/nagios/libexec": do exi

[Puppet Users] Re: user management define once an add if required on server

2013-10-10 Thread Andreas Dvorak
Great, thank you the good example. Now I am happy Andreas -- 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 post to

[Puppet Users] Re: user management define once an add if required on server

2013-10-08 Thread Andreas Dvorak
Hi, there is a problem If I want to add a second user with the same group to the same server I get this error: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Duplicate declaration: Group[baader] is already declared in file /etc/puppet/git/modules/accounts/manifests

Re: [Puppet Users] user management define once an add if required on server

2013-10-08 Thread Andreas Dvorak
Hi Johan, thank you for the hint with virtual resources. Here is my solution cat init.pp class accounts { @accounts::virtual {'test1': comment => "test1", uid => "1056", gid => "880", group => "baader", shell => "/bin/bash", password => '$1$6hsRON8i7w5JncJ

[Puppet Users] user management define once an add if required on server

2013-10-08 Thread Andreas Dvorak
Dear all I am looking for a solution for a module to define alle possible user and then install the one or more user from that module if needed on a server, but not all of them. My idea is something like this. Can I define a user in the nodes.pp at a special Server to install that user? init.p

[Puppet Users] Re: Solaris useradd uses /export/home and not /home

2013-09-16 Thread Andreas Dvorak
Many thanks John. Now it is solved. Here is the solution. init.pp class admin_user::group { group { "baaderadm": gid => "888", ensure => present, } } class admin_user { include admin_user::group, admin_user::list } list.pp class admin_user::list { admin_user::useradd { "

[Puppet Users] Re: run module although with time condition, but also possibilty execute even so not in that time frame

2013-09-13 Thread Andreas Dvorak
Great John, the command puppet agent --ignoreschedules --tags copy_file is working and exactly what I need. Thank you very much. Andreas -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails

Re: [Puppet Users] Solaris useradd uses /export/home and not /home

2013-09-13 Thread Andreas Dvorak
Hi John, the catalog file in RH6 is fine with "home":"/home/user1" and the user is created in /home/user1 That problem seems to be complicate. Andreas -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop re

[Puppet Users] Re: run module although with time condition, but also possibilty execute even so not in that time frame

2013-09-13 Thread Andreas Dvorak
Hi, now I have used the "schedule" successfully. But I don't understand the method to override the schedule completely. Is it true that I have to change vom node.pp file from node 'vm6741.muc.baag' inherits base { $motd_function = "Puppet Agent" $motd_environment = "Test" $motd_descript

Re: [Puppet Users] Solaris useradd uses /export/home and not /home

2013-09-13 Thread Andreas Dvorak
I forgot: Yes the init.pp file is the one I use. -- 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 post to this group

Re: [Puppet Users] Solaris useradd uses /export/home and not /home

2013-09-13 Thread Andreas Dvorak
Hi John, I can see that it does use the provider user_role_add, but there seems to be a problem. Debug: /User[user1]: Provider user_role_add does not support features libuser; not managing attribute forcelocal I get the same message when I run it on RedHat 6. In the catalog file I find this {

Re: [Puppet Users] Solaris useradd uses /export/home and not /home

2013-09-06 Thread Andreas Dvorak
Hi Dick, thank you for the help, but it did not change anythink. The error mesage stays exactly the same. Puppet ignores the setting of the home variable. Now I have created the missing home directory in /export and the user is created, but in the wrong directory. Best regards Andreas -- Yo

[Puppet Users] Solaris useradd uses /export/home and not /home

2013-09-06 Thread Andreas Dvorak
Dear all I have puppet 3.2 running and have a module to install user. On Linx user are created in /home but on Solaris it wants to create them in /export/home. I don't understand why. class admin_user::group { group { "baaderadm": gid => "888", ensure => present, } } class ad

  1   2   >