Skip to content

Commit 525e7aa

Browse files
committed
REMIND fix this
1 parent 0287c06 commit 525e7aa

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

manifests/osfamily/redhat.pp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@
164164
true => '_none_',
165165
default => $puppet_agent::proxy,
166166
}
167+
167168
yumrepo { 'pc_repo':
168169
baseurl => $source,
169170
descr => "Puppet Labs ${puppet_agent::collection} Repository",
@@ -178,6 +179,10 @@
178179
username => $puppet_agent::username,
179180
password => $puppet_agent::password,
180181
}
182+
file { '/etc/yum.repos.d/pc_repo.repo':
183+
ensure => file,
184+
mode => "0600"
185+
}
181186
}
182187
}
183188
}

manifests/osfamily/suse.pp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,13 @@
134134
# 'auto' versus X.Y.Z
135135
$_package_version = getvar('puppet_agent::master_or_package_version')
136136

137+
# REMIND: why is this is_pe??
137138
# REMIND: add credentials to PuppetcoreCreds
138139
$pw = unwrap($puppet_agent::password)
139140
$url = URI($source)
140-
$baseurl = "${url.scheme}://${puppet_agent::username}:${pw}@${url.host}/${url.path}?auth=basic&ssl_verify=no"
141+
# REMIND: should this be sensitive? so it doesn't show in yum repo diff?
142+
# REMIND: what about ssl_verify=no?
143+
$baseurl = Sensitive("${url.scheme}://${puppet_agent::username}:${pw}@${url.host}/${url.path}?auth=basic&ssl_verify=no")
141144

142145
# In Puppet Enterprise, agent packages are served by the same server
143146
# as the master, which can be using either a self signed CA, or an external CA.

0 commit comments

Comments
 (0)