Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

How to use file_line with "after" and "multiple=true"?

$
0
0
i am trying to add multiple lines, in my case `exclude=nodejs` after each occurance of `gpgcheck=1`, tried multiple variations but most of the time it simple adds nothing. puppet code: file_line { '/etc/yum.repos.d/webtatic.repo': ensure => present, multiple => true, after => 'gpgcheck\=1', path => '/etc/yum.repos.d/webtatic.repo', line => 'exclude=nodejs', #match => 'exclude\=nodejs', } file source: [webtatic] name=Webtatic Repository EL7 - $basearch #baseurl=https://repo.webtatic.com/yum/el7/$basearch/ mirrorlist=https://mirror.webtatic.com/yum/el7/$basearch/mirrorlist failovermethod=priority enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-webtatic-el7 [webtatic-debuginfo] name=Webtatic Repository EL7 - $basearch - Debug #baseurl=https://repo.webtatic.com/yum/el7/$basearch/debug/ mirrorlist=https://mirror.webtatic.com/yum/el7/$basearch/debug/mirrorlist failovermethod=priority enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-webtatic-el7 file target: [webtatic] name=Webtatic Repository EL7 - $basearch #baseurl=https://repo.webtatic.com/yum/el7/$basearch/ mirrorlist=https://mirror.webtatic.com/yum/el7/$basearch/mirrorlist failovermethod=priority enabled=1 gpgcheck=1 exclude=nodejs gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-webtatic-el7 [webtatic-debuginfo] name=Webtatic Repository EL7 - $basearch - Debug #baseurl=https://repo.webtatic.com/yum/el7/$basearch/debug/ mirrorlist=https://mirror.webtatic.com/yum/el7/$basearch/debug/mirrorlist failovermethod=priority enabled=0 gpgcheck=1 exclude=nodejs gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-webtatic-el7

Viewing all articles
Browse latest Browse all 6104

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>