diff options
| author | Silvio Rhatto <rhatto@riseup.net> | 2015-03-05 19:38:19 -0300 | 
|---|---|---|
| committer | Silvio Rhatto <rhatto@riseup.net> | 2015-03-05 19:38:19 -0300 | 
| commit | bc7002c09a0de319e68a9a367049af083fb56758 (patch) | |
| tree | 004b13ed8af7daa746986c496f0c598143cc1e19 /manifests | |
| parent | de89d92f6956c69133752d3c174dbb42ae4b56a3 (diff) | |
| download | puppet-nodo-bc7002c09a0de319e68a9a367049af083fb56758.tar.gz puppet-nodo-bc7002c09a0de319e68a9a367049af083fb56758.tar.bz2 | |
Not managing /etc/{profile,bash.bashrc} anymore
Diffstat (limited to 'manifests')
| -rw-r--r-- | manifests/subsystem/profile.pp | 31 | 
1 files changed, 4 insertions, 27 deletions
| diff --git a/manifests/subsystem/profile.pp b/manifests/subsystem/profile.pp index ab1008e..56190eb 100644 --- a/manifests/subsystem/profile.pp +++ b/manifests/subsystem/profile.pp @@ -1,29 +1,11 @@  # Custom configuration for user profiles  class nodo::subsystem::profile { -  # As of squeeze, custom configuration can be placed directly at -  # /etc/profile.d, so in the future this file won't need to be -  # managed by puppet anymore. -  file { "/etc/profile": -    source  => [ "puppet:///modules/nodo/etc/profile.${::lsbdistcodename}", -                 "puppet:///modules/nodo/etc/profile", -               ], -    owner   => "root", -    group   => "root", -    mode    => 0644, -    ensure  => present, -    require => File['/usr/local/bin/prompt.sh'], -  } - -  file { "/etc/bash.bashrc": -    source  => "puppet:///modules/nodo/etc/bash.bashrc", -    owner   => "root", -    group   => "root", -    mode    => 0644, -    ensure  => present, -    require => File['/usr/local/bin/prompt.sh'], +  # TODO: remove in the future +  file { "/usr/local/bin/prompt.sh": +    ensure  => absent,    } -  file { "/usr/local/bin/prompt.sh": +  file { "/etc/profile.d/prompt.sh":      source  => "puppet:///modules/nodo/bin/prompt.sh",      owner   => "root",      group   => "root", @@ -31,11 +13,6 @@ class nodo::subsystem::profile {      ensure  => present,    } -  # This is already being sourced by bash.bashrc. -  file { "/etc/profile.d/prompt.sh": -    ensure => absent, -  } -    # See http://linuxforcynics.com/how-to/using-rxvt-unicode-with-screen    #     https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=630976    #     https://bbs.archlinux.org/viewtopic.php?id=50647 | 
