-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsite2.pp
108 lines (98 loc) · 2.71 KB
/
site2.pp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# rename to foreman_main.pp
mysql::db { foreman:
user => foreman,
password => changeme,
host => localhost,
grant => ['ALL'],
}
class { '::foreman':
db_type => mysql,
db_host => localhost,
db_port => 3306,
db_manage => false, #true,
db_adapter => mysql2,
db_database => foreman,
db_username => foreman,
db_password => 'changeme',
admin_username => admin,
admin_password => 'changemea',
authentication => true,
oauth_active => true,
oauth_map_users => true,
# oauth_consumer_key => WvZpMupBEGZPj6RXXZBprvUKg6kSNM5e,
# oauth_consumer_secret => "EiwMYSN78wKxQETrqB7rhCWBn9HcXV3x",
passenger => true,
apipie_task => "apipie:cache:index",
app_root => "/usr/share/foreman",
passenger_prestart => true,
passenger_min_instances => "1",
passenger_start_timeout => "600",
environment=> production,
user => foreman,
group => foreman,
puppetrun => true,
}
# validate_re($environment, ['^productio$', '^smtp$'], "email_delivery_method can be either sendmail or smtp, not")
class { '::foreman_wrapper':
db_type => mysql,
db_host => localhost,
db_port => 3306,
db_manage => false, #true,
db_adapter => mysql2,
db_database => foreman,
db_username => foreman,
db_password => 'changeme',
admin_username => admin,
admin_password => 'changemea',
authentication => true,
oauth_active => true,
oauth_map_users => true,
oauth_consumer_key => WvZpMupBEGZPj6RXXZBprvUKg6kSNM5e,
oauth_consumer_secret => "EiwMYSN78wKxQETrqB7rhCWBn9HcXV3x",
passenger => true,
apipie_task => "apipie:cache:index",
app_root => "/usr/share/foreman",
passenger_prestart => true,
passenger_min_instances => "1",
passenger_start_timeout => "600",
environment=> production,
user => foreman,
group => foreman,
puppetrun => true,
}
#foreman_config_entry { 'db_pending_migration':
# value => false,
# dry => true,
# } ~>
#foreman::rake { 'db:migrate':
# user => 'root',
# app_root => '/usr/share/foreman',
#}~>
#foreman::rake { 'apipie:cache':
#}~>
class { '::foreman::puppetmaster':
foreman_user => 'admin',
foreman_password => 'changemea',
#passenger => true,
}
class { '::foreman_proxy':
tftp => false,
plugin_version => absent,
ssl => true,
http_port => 8000,
ssl_port => 8443,
puppetrun => true,
dhcp => false,
dns => false,
bmc => false,
realm => false,
register_in_foreman => true,
foreman_base_url => "https://node-15.domain.tld",
# oauth_consumer_key => WvZpMupBEGZPj6RXXZBprvUKg6kSNM5e,
# oauth_consumer_secret => "EiwMYSN78wKxQETrqB7rhCWBn9HcXV3x",
registered_name => 'node-15.domain.tld',
registered_proxy_url => "https://node-15.domain.tld:8443",
oauth_effective_user => admin,
dir => "/usr/share/foreman-proxy",
user => foreman-proxy,
}