Skip to content

Instantly share code, notes, and snippets.

@TvL2386
Created May 6, 2014 14:40
Show Gist options
  • Save TvL2386/00f432b0c322de62d2ca to your computer and use it in GitHub Desktop.
Save TvL2386/00f432b0c322de62d2ca to your computer and use it in GitHub Desktop.
User is not working as expected
# SNIPPET FROM MY MODULE #
user { 'myuser':
require => Package["bla"],
name => 'myuser',
password => '$6$OszcHZZq$/PLagjQvt3jG/zfM1S/vU5vF4dMEXzdrPcc2.Iih01TxhN8004sQIKJpXQd5K7JySWIHSGwTHnY0mKrqFQd3H1',
ensure => present,
home => '/opt/myuser',
comment => 'myuser agent user (managed by puppet)',
managehome => true,
shell => '/bin/bash',
system => true,
uid => 123,
gid => 123,
}
# SNIPPET FROM MY MODULE #
# On a working ubuntu 12.04 server:
# $ grep myuser /etc/shadow
# myuser:$6$OszcHZZq$/PLagjQvt3jG/zfM1S/vU5vF4dMEXzdrPcc2.Iih01TxhN8004sQIKJpXQd5K7JySWIHSGwTHnY0mKrqFQd3H1:16196::::::
#
# My ubuntu 12.04 server with issues:
# $ grep myuser /etc/shadow
# myuser:!:16196::::::
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment