Hello...
I''m adding users via something like:
define devel_user ($fullname, $uid) {
user { "$name":
ensure => present,
comment => "$fullname",
gid => "500",
uid => "$uid",
shell => $operatingsystem ? {
FreeBSD => "/bin/sh",
default => "/bin/bash",
},
home => "/home/$name",
managehome => true,
}
}
class devel_users {
devel_user { "chrismcc":
fullname => "Christopher McCrory",
uid => "604",
}
devel_user { "rlm":
...
}
devel_user ...
It adds the users and creates home dirs. But the order they are created
in seems to be (semi?) random. This is not a huge problem, but it would
be nice to "tail /etc/passwd" to know if the new guy has been added.
example:
class foo {
something { ...
...
}
more_stuff_that_depends_on_something { ...
...
}
bar_that_needs_something { ...
...
}
another_that_needs_bar { ...
}
}
I would assume that all the above would get executed in the order
listed. But since that is not the case, I can see it biting me in the
ass later. In the long term for future work, how do I specify order for
a long list of actions?
--
Christopher McCrory
"The guy that keeps the servers running"
To the optimist, the glass is half full.
To the pessimist, the glass is half empty.
To the engineer, the glass is twice as big as it needs to be.