[Puppet Users] Re: How to turn on Centos 8 repo

2020-03-29 Thread Vadym Chepkov
As was advised, it's better manage the whole repository, using puppet/yum module for example. You can manage some of the feature of the repo, this way: yumrepo { 'HighAvailability': descr => 'name=CentOS-$releasever - HA', enabled => '1', target => '/etc/yum.repos.d/CentOS-HA.repo', } --

[Puppet Users] Re: Puppet Enterprise 2019.5 is now available!

2020-03-20 Thread Vadym Chepkov
Seems pipeline for EL8 stuck somewhere, release is not available: $ wget --content-disposition >> "https://pm.puppet.com/cgi-bin/download.cgi?dist=el=8=x86_64=latest; > > --2020-03-20 04:44:35-- >> >> https://pm.puppet.com/cgi-bin/download.cgi?dist=el=8=x86_64=latest > > Resolving

[Puppet Users] puppet 4.9.0 is not compatible with hiera-eyaml

2017-02-05 Thread Vadym Chepkov
Hi, It looks like puppet 4.9.0 (installed with puppet-agent-1.9.0) is not compatible with hiera-eyaml # puppet lookup testkey Error: Could not run: Hiera type mismatch: expected Hash and got String I downgraded to puppet-agent-1.8.3 meanwhile and it works fine Regards, Vadym -- You

[Puppet Users] How to remove a section in inifile?

2016-02-03 Thread Vadym Chepkov
Hi, Is there way to remove a whole section from an inifile ? For example, [section] Removing settings from the section you can do with puppetlabs-inifile module: ini_setting { 'made a mistake': ensure => absent, path=> $config_file, section => 'section', setting =>

[Puppet Users] Re: How to include quoted string into a command

2015-12-15 Thread Vadym Chepkov
Shell allows me to escape back-tick: $ echo "/var/log/syslog -C 8 -a 'kill -HUP \`cat /var/run/syslog.pid\`'" /var/log/syslog -C 8 -a 'kill -HUP `cat /var/run/syslog.pid`' puppet does like them: $string="/var/log/syslog -C 8 -a 'kill -HUP \`cat /var/run/syslog.pid\`'" exec{'echo string':

Re: [Puppet Users] Re: How to include quoted string into a command

2015-12-15 Thread Vadym Chepkov
On Tuesday, December 15, 2015 at 5:48:36 PM UTC-5, Josh Cooper wrote: > > > Puppet is interpreting \` as an escape sequence since it's in a > double-quoted string, and reporting that it's an invalid escape sequence. I > think you'll need to escape the backslash: > > $string="/var/log/syslog -C

[Puppet Users] Re: How to include quoted string into a command

2015-12-14 Thread Vadym Chepkov
I passed the single quotes bump, thank you, now I stuck on back ticks, puppet actually calls the script it and doesn't allow me to escape ` symbol I need this for Solaris logadm.conf, which is a very unusual config file, since logadm modifies it during each run. I am using the same technique

[Puppet Users] How to include quoted string into a command

2015-12-13 Thread Vadym Chepkov
Hi, I can't figure out how to include a single quoted string into a command, not matter what escaping I do. Here is a simplified code : $string = '\'a quoted string\'' exec { 'show string': command => "echo \'I want to see ${string}\'", logoutput => true, path => '/bin:/usr/bin',

[Puppet Users] Re: pe_r10k: Unable to determine current branches

2015-12-13 Thread Vadym Chepkov
You didn't specify, what version you use, so I assume one of PE2015 versions. This version moved location where it expects environments to be, so you need to either adjust your hiera or modify settings in console for class pe_r10k This is how my r10k.yaml looks for Windows supporting master:

Re: [Puppet Users] user and service interdependencies

2015-12-12 Thread Vadym Chepkov
It's just an example of a case which is not solved by puppet language currently as far as I can tell. To solve this type of collisions "require-notify" relationship needs to be established, i.e. ability to notify refreshonly exec, for example, before changing user's attributes. Another good

[Puppet Users] user and service interdependencies

2015-12-11 Thread Vadym Chepkov
Hi, How would one gracefully solve a problem like this, we are facing time to time, mostly in the development cycle Lets say somebody wrote code like this (for simplicity): user { 'tools': ensure => present, } service { 'tools': ensure => 'running', require => User['tools'], } It ran,

Re: [Puppet Users] Did PE 3.7 kills r10k?

2014-12-27 Thread Vadym Chepkov
On Saturday, December 27, 2014 9:44:44 AM UTC-5, Martin Alfke wrote: Hi Vadym, the PE node classifier is an ENC. This ENC sets environments per nodes as an authority. Nodes can no longer switch their environments if you use an ENC with environment parameters set. You still have the

[Puppet Users] Re: Did PE 3.7 kills r10k?

2014-12-27 Thread Vadym Chepkov
other environments in the group's metadata. Hope that helps! Justin On Friday, December 26, 2014 3:39:02 PM UTC-8, Vadym Chepkov wrote: Hi, I really hope I am mistaken, but it seems you can't use r10k with it's full potential anymore in Puppet Enterprise 3.7. In the past (PE3.3) I could

[Puppet Users] Did PE 3.7 kills r10k?

2014-12-26 Thread Vadym Chepkov
Hi, I really hope I am mistaken, but it seems you can't use r10k with it's full potential anymore in Puppet Enterprise 3.7. In the past (PE3.3) I could create any branch, feature_something, in git repository. r10k would create a branch/environment ​ ​ and I ​ could ​ ​ apply it from the command

[Puppet Users] mcollective compatibility in PE 3.7

2014-11-11 Thread Vadym Chepkov
Hi, I just installed PE3.7 and master can't see any PE3.3 mcollective nodes, only itself. Is there compatibility issue or some setting which can be tweaked? Thanks, Vadym -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from

[Puppet Users] augeas and multiple values attribute

2014-08-19 Thread Vadym Chepkov
Hi, How can I use puppet's augeas type to configure parameters with multiple values? For instance, sshd_config can have multiple HostKeys parameters: augtool print /files/etc/ssh/sshd_config/HostKey /files/etc/ssh/sshd_config/HostKey[1] = /etc/ssh/ssh_host_rsa_key

Re: [Puppet Users] Is PuppetDB environment aware?

2014-06-17 Thread Vadym Chepkov
On Jun 17, 2014, at 8:40 AM, Yanis Guenane yguen...@gmail.com wrote: The latest version of PuppetDB (ie. 2.0.0) does support environments. The first line of the release note is 'PuppetDB 2.0.0 is a feature release focusing on environments support'. Here the full link:

[Puppet Users] Is PuppetDB environment aware?

2014-06-16 Thread Vadym Chepkov
Greetings, Does PuppetDB support environments similar to puppet? I noticed exported resources are crossing from one environment to another. I would like to prevent this without having to add $environment to every single tag and forge modules don't do it anyway, so there must be a some way to

[Puppet Users] How to create different types from the same hiera data

2014-06-04 Thread Vadym Chepkov
Hi, I would like to have mounts entries and mount points created using create_resources from the same hiera data. I am thinking to describe directories like this: --- my::mounts: /dir1: device: server1:/share1 options: rw,soft,noatime owner: user1 mode: 0644 /dir2:

Re: [Puppet Users] How to create different types from the same hiera data

2014-06-04 Thread Vadym Chepkov
On Wednesday, June 4, 2014 9:52:44 AM UTC-4, Felix.Frank wrote: Hi, On 06/04/2014 03:32 PM, Vadym Chepkov wrote: File[ensure=directory] - Mount[type=nfs,ensure=mounted] Is this possible or I have to maintain two sets of data? no, that is fine. The 'puppet magic' you are looking