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',
}
--
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
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
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 =>
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':
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
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
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',
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:
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
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,
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
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
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
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
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
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:
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
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:
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
20 matches
Mail list logo