Updates jenkinsuser so skel config is Ubuntu only.
Exclude a couple of file resources from running on non-Ubuntu distributions (Red Hat for example) which don't always have bash config files (.bashrc, .profile, etc) in /etc/skel. Change-Id: Id67b16e1a80617c3bc98fce130b5fe2f343f5d6e Reviewed-on: https://review.openstack.org/18998 Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Reviewed-by: Jeremy Stanley <fungi@yuggoth.org> Reviewed-by: James E. Blair <corvus@inaugust.com> Approved: James E. Blair <corvus@inaugust.com> Tested-by: Jenkins
This commit is contained in:
parent
c5e4631a6b
commit
2ba9ef9b27
@ -82,6 +82,9 @@ class jenkins::jenkinsuser(
|
|||||||
require => File['/home/jenkins/.ssh'],
|
require => File['/home/jenkins/.ssh'],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#NOTE: not all distributions have default bash files in /etc/skel
|
||||||
|
if ($::operatingsystem == 'Ubuntu') {
|
||||||
|
|
||||||
file { '/home/jenkins/.bashrc':
|
file { '/home/jenkins/.bashrc':
|
||||||
ensure => present,
|
ensure => present,
|
||||||
owner => 'jenkins',
|
owner => 'jenkins',
|
||||||
@ -112,6 +115,8 @@ class jenkins::jenkinsuser(
|
|||||||
require => File['/home/jenkins'],
|
require => File['/home/jenkins'],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
file { '/home/jenkins/.ssh/config':
|
file { '/home/jenkins/.ssh/config':
|
||||||
ensure => present,
|
ensure => present,
|
||||||
owner => 'jenkins',
|
owner => 'jenkins',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user