#
# Basic users
#
-file { "$bootstrap_path/manifests/classes/users.pp":
+file { "$bootstrap_path/modules/site_users/manifests/init.pp":
ensure => present,
mode => 0644,
content => template("$templates/puppet/users.pp.erb"),
# virtual machine.
#
-# Import site configuration
-import "../site.pp"
-
# The server role
include nodo::role::server
# Once it's running it can setup all the other nodes.
#
-# Import site configuration
-import "../site.pp"
-
# Include the master node configuration
include nodo::role::master
--- /dev/null
+class site_users::admin inherits user {
+ # root user and password
+ #user::manage { "root":
+ # tag => "admin",
+ # homedir => '/root',
+ # password => '$5$zpdXgIaLKMDckKx9$qTS9WbmS/zylFwPu1orq.779CNnAiA9VoGdFNU94jz/',
+ #}
+
+ # first user config
+ #user::manage { "user":
+ # tag => "admin",
+ # groups => [ "sudo", ],
+ # password => '$5$D8kCEIo5/MNCA7Tz$VhGg2MNDs21JzX9HgxSWMupA5GD5MXnKwDuveMSdPH7',
+ # sshkey => [ "WRONG" ],
+ #}
+}
--- /dev/null
+class site_users::backup inherits user {
+ # define third-party hosted backup users here
+}
--- /dev/null
+class site_users {
+}
--- /dev/null
+class site_users::virtual inherits user {
+ # define custom users here
+}
-class websites::admin inherits websites::hosting::admin {
+class site_websites::admin inherits websites::hosting::admin {
# An administrative Trac instance
#apache::site { "admin":
# docroot => "${apache::sites_folder}/admin/trac/htdocs",
tag => 'all',
}
}
-
-class websites inherits websites::hosting {
- # Website definitions: always use tagged resources
-
- #apache::site { "site":
- # source => true,
- # ticket => '001',
- # docroot => '/var/www/site',
- # tag => 'all',
- #}
-
- #database::instance { "site":
- # password => 'xxx',
- # tag => 'all',
- #}
-
-}
--- /dev/null
+class site_websites inherits websites::hosting {
+ # Website definitions: always use tagged resources
+
+ #apache::site { "site":
+ # source => true,
+ # ticket => '001',
+ # docroot => '/var/www/site',
+ # tag => 'all',
+ #}
+
+ #database::instance { "site":
+ # password => 'xxx',
+ # tag => 'all',
+ #}
+
+}
}
class users::admin inherits user {
-
- # Reprepro group needed for web nodes
- #if !defined(Group["reprepro"]) {
- # group { "reprepro":
- # ensure => present,
- # }
- #}
-
# root user and password
user::manage { "root":
tag => "admin",