-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Review and publish release 1.1.0. See changes at README
- Loading branch information
Marco Túlio R Braga
committed
Jan 25, 2016
1 parent
7d3819d
commit 63228da
Showing
12 changed files
with
271 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,4 +18,4 @@ | |
class profiles ( | ||
$gb_pool = undef, | ||
$gb_repo_base = undef, | ||
) { } | ||
) inherits profiles::params { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,60 @@ | ||
# Class: users | ||
# | ||
# This module manages users | ||
# == Class: profiles/linux/users | ||
# | ||
# This module manages users. | ||
# | ||
class profiles::linux::users { | ||
|
||
# Default configuration | ||
$default_gid = 'users' | ||
$default_gid = 'infra' | ||
$default_ensure = 'present' | ||
$default_shell = '/bin/bash' | ||
$default_mgm_home = true | ||
$default_pw_mx_ag = '99999' | ||
$default_pw_mi_ag = '0' | ||
|
||
################# | ||
# Create groups | ||
group { [$default_gid,'whell','sysadmins']: | ||
ensure => present, | ||
} | ||
|
||
################ | ||
# Create USERS | ||
|
||
## FULL Admin [whell] | ||
user { 'marco.braga': | ||
ensure => $default_ensure, | ||
comment => 'CGI INFRA - Marco Tulio', | ||
name => 'mtulio', | ||
home => '/home/marco.braga', | ||
password => '$6$GpTlgkVr$CHLWoyzd4fGD/c4eG2A5JnR8HvsrUF0sGnHrpumysSsJRW5laOfMrvuYX3qjlLriQXGQVHqLq8UIpOxe9Wz2C1', # admin@123 | ||
groups => ['whell','sysadmin'], | ||
gid => $default_gid, | ||
shell => $default_shell, | ||
managehome => $default_mgm_home, | ||
password_max_age => $default_pw_mx_ag, | ||
password_min_age => $default_pw_mi_ag, | ||
user { 'root': | ||
ensure => $default_ensure, | ||
name => 'root', | ||
password => '$6$HaT.I1xv1W09bLSS$d13qlT2Fhd27qNZefcSZUbj3uniH9aztxJSQuUKkCy3Jdj0xyOmoW4j/sOpmlfR/EbWC6fBiPGMNeu9nvSjX//', | ||
} | ||
|
||
user { 'admin02': | ||
linux::base::user { 'marco.braga': | ||
ensure => $default_ensure, | ||
comment => 'Sysadmin 02', | ||
name => 'sysadmin02', | ||
home => '/home/sysadmin02', | ||
password => '$6$GpTlgkVr$CHLWoyzd4fGD/c4eG2A5JnR8HvsrUF0sGnHrpumysSsJRW5laOfMrvuYX3qjlLriQXGQVHqLq8UIpOxe9Wz2C1', # admin@123 | ||
groups => ['whell','sysadmins'], | ||
comment => 'Marco Tulio', | ||
name => 'marco.braga', | ||
home => '/home/marco.braga', | ||
password => '$6$6rWfmL1I$ZEYGJ8PwiancJAl@QUEQtDWQaeuIpjqT/rbf6QiLdHEE0..TRyuWGYB2DfzuePQeJVpOLEonuRGpJDyB4tWkRB1', | ||
groups => ['wheel','production'], | ||
gid => $default_gid, | ||
shell => $default_shell, | ||
managehome => $default_mgm_home, | ||
manage_home => $default_mgm_home, | ||
password_max_age => $default_pw_mx_ag, | ||
password_min_age => $default_pw_mi_ag, | ||
} | ||
|
||
user { 'user01': | ||
ensure => $default_ensure, | ||
comment => 'CGI INFRA - User 01', | ||
name => 'user01', | ||
home => '/home/user01', | ||
password => '$6$GpTlgkVr$CHLWoyzd4fGD/c4eG2A5JnR8HvsrUF0sGnHrpumysSsJRW5laOfMrvuYX3qjlLriQXGQVHqLq8UIpOxe9Wz2C1', # admin@123 | ||
gid => $default_gid, | ||
shell => $default_shell, | ||
managehome => $default_mgm_home, | ||
password_max_age => $default_pw_mx_ag, | ||
password_min_age => $default_pw_mi_ag, | ||
################ | ||
# Delete USERS | ||
linux::base::user { [ | ||
'user1', | ||
'user2' | ||
]: | ||
ensure => 'absent' | ||
} | ||
|
||
|
||
################################## | ||
# Test | ||
# linux::base::user { ['user1','user3']: | ||
# ensure => 'present', | ||
# gid => $default_gid, | ||
# shell => $default_shell, | ||
# manage_home => $default_mgm_home, | ||
# password_max_age => $default_pw_mx_ag, | ||
# password_min_age => $default_pw_mi_ag, | ||
# } | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
# == Class: profiles Zabbix | ||
class profiles::nms::zabbix_agent inherits profiles { | ||
class profiles::nms::zabbix_agent ( | ||
$gb_zabbix_a_server = $profiles::params::gb_zabbix_a_server, | ||
) inherits profiles::params { | ||
#> Module: zabbix | ||
class {'::zabbix::agent': | ||
opt_use_template => 'yes', | ||
server => 'zabbix.local', | ||
server => $gb_zabbix_a_server, | ||
listen_ip => $::ipaddress, | ||
listen_port => '10050', | ||
start_agents => '2', | ||
start_agents => '3', | ||
} | ||
} |
Oops, something went wrong.