Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # /etc/puppet/modules/users/virtual.pp
- class user::virtual {
- @user { "pheezy":
- home => "/home/pheezy",
- ensure => "present",
- groups => ["root","wheel"],
- uid => "8001",
- password => "SCRAMBLED",
- comment => "Pheezy",
- shell => "/bin/bash",
- managehome => "true",
- }
- # /etc/puppet/modules/users/manifests/ssh_authorized_keys.pp
- ssh_authorized_key { "pheezy":
- ensure => "present",
- type => "ssh-dss",
- key => "AAAAB....",
- user => "pheezy",
- }
- # /etc/puppet/modules/users/init.pp
- import "users.pp"
- import "ssh_authorized_keys.pp"
- class user::ops inherits user::virtual {
- realize(
- User["pheezy"],
- )
- }
- # /etc/puppet/manifests/modules.pp
- import "sudo"
- import "users"
- # /etc/puppet/manifests/nodes.pp
- node basenode {
- include sudo
- }
- node 'testbox' inherits basenode {
- include user::ops
- }
- # /etc/puppet/manifests/site.pp
- import "modules"
- import "nodes"
- # The filebucket option allows for file backups to the server
- filebucket { main: server => 'puppet' }
- # Set global defaults - including backing up all files to the main filebucket and adds a global path
- File { backup => main }
- Exec { path => "/usr/bin:/usr/sbin/:/bin:/sbin" }
- ###################################
- debug: Retrieving catalog
- debug: Calling puppetmaster.getconfig
- err: Could not retrieve catalog: Could not parse for environment production: Syntax error at 'user'; expected '}' at /etc/puppet/modules/users/manifests/ssh_authorized_keys.pp:9
Add Comment
Please, Sign In to add comment