Puppet Class: misp

Inherited by:
misp::config
misp::install
misp::service
misp::dependencies
Defined in:
manifests/init.pp

Overview

Parameters:

  • misp_git_tag (Any) (defaults to: 'v2.4.71')
  • stix_git_repo (Any) (defaults to: 'https://github.com/STIXProject/python-stix.git')
  • stix_git_tag (Any) (defaults to: 'v1.1.1.4')
  • cybox_git_repo (Any) (defaults to: 'https://github.com/CybOXProject/python-cybox.git')
  • cybox_git_tag (Any) (defaults to: 'v2.1.0.12')
  • mixbox_git_repo (Any) (defaults to: 'https://github.com/CybOXProject/mixbox.git')
  • mixbox_git_tag (Any) (defaults to: 'v1.0.2')
  • webservername (Any) (defaults to: 'httpd')
  • redis_server (Any) (defaults to: true)
  • db_name (Any) (defaults to: 'misp')
  • db_user (Any) (defaults to: 'misp')
  • db_host (Any) (defaults to: 'localhost')
  • db_port (Any) (defaults to: '3306')
  • db_password (Any) (defaults to: '')
  • redis_host (Any) (defaults to: '127.0.0.1')
  • redis_port (Any) (defaults to: 6379)
  • redis_database (Any) (defaults to: 13)
  • redis_password (Any) (defaults to: undef)
  • debug (Any) (defaults to: 0)
  • site_admin_debug (Any) (defaults to: false)
  • install_dir (Any) (defaults to: '/var/www/MISP/')
  • config_dir (Any) (defaults to: '/var/www/MISP/app/Config/')
  • timezone (Any) (defaults to: 'UTC')
  • default_user (Any) (defaults to: 'apache')
  • default_group (Any) (defaults to: 'apache')
  • default_high_user (Any) (defaults to: 'root')
  • default_high_group (Any) (defaults to: 'apache')
  • security_level (Any) (defaults to: 'medium')
  • salt (Any) (defaults to: 'Rooraenietu8Eeyo<Qu2eeNfterd-dd+')
  • cipherseed (Any) (defaults to: '')
  • auth_method (Any) (defaults to: '')
  • password_policy_length (Any) (defaults to: 6)
  • password_policy_complexity (Any) (defaults to: '/((?=.*\\d)|(?=.*\\W+))(?![\\n])(?=.*[A-Z])(?=.*[a-z]).*$/')
  • sanitise_attribute_on_delete (Any) (defaults to: false)
  • require_password_confirmation (Any) (defaults to: false)
  • uuid (Any) (defaults to: 0)
  • live (Any) (defaults to: true)
  • enable_advanced_correlations (Any) (defaults to: false)
  • maintenance_message (Any) (defaults to: 'Great things are happening! MISP is undergoing maintenance, but will return shortly. You can contact the administration at \\$email.')
  • footermidleft (Any) (defaults to: '')
  • footermidright (Any) (defaults to: '')
  • footer_logo (Any) (defaults to: '')
  • home_logo (Any) (defaults to: '')
  • main_logo (Any) (defaults to: '')
  • org (Any) (defaults to: 'ORGNAME')
  • host_org_id (Any) (defaults to: '1')
  • showorg (Any) (defaults to: true)
  • threatlevel_in_email_subject (Any) (defaults to: true)
  • email_subject_tlp_string (Any) (defaults to: 'TLP Amber')
  • email_subject_tag (Any) (defaults to: 'tlp')
  • email_subject_include_tag_name (Any) (defaults to: true)
  • background_jobs (Any) (defaults to: true)
  • attachments_dir (Any) (defaults to: 'app/files')
  • cached_attachments (Any) (defaults to: true)
  • email (Any) (defaults to: 'root@localhost')
  • disable_emailing (Any) (defaults to: false)
  • contact (Any) (defaults to: 'root@localhost')
  • cveurl (Any) (defaults to: 'http://cve.circl.lu/cve/')
  • disablerestalert (Any) (defaults to: false)
  • extended_alert_subject (Any) (defaults to: true)
  • default_event_distribution (Any) (defaults to: '1')
  • default_attribute_distribution (Any) (defaults to: 'event')
  • default_event_threat_level (Any) (defaults to: '1')
  • tagging (Any) (defaults to: true)
  • full_tags_on_event_index (Any) (defaults to: true)
  • welcome_text_top (Any) (defaults to: '')
  • welcome_text_bottom (Any) (defaults to: '')
  • welcome_logo (Any) (defaults to: '')
  • welcome_logo2 (Any) (defaults to: '')
  • take_ownership_xml_import (Any) (defaults to: false)
  • terms_download (Any) (defaults to: false)
  • terms_file (Any) (defaults to: '')
  • showorgalternate (Any) (defaults to: false)
  • unpublishedprivate (Any) (defaults to: false)
  • new_user_text (Any) (defaults to: 'Dear new MISP user,\\n\\nWe would hereby like to welcome you to the \\$org MISP community.\\n\\n Use the credentials below to log into MISP at \\$misp, where you will be prompted to manually change your password to something of your own choice.\\n\\nUsername: \\$username\\nPassword: \\$password\\n\\nIf you have any questions, don\'t hesitate to contact us at: \\$contact.\\n\\nBest regards,\\nYour \\$org MISP support team')
  • password_reset_text (Any) (defaults to: 'Dear MISP user,\\n\\nA password reset has been triggered for your account. Use the below provided temporary password to log into MISP at \\$misp, where you will be prompted to manually change your password to something of your own choice.\\n\\nUsername: \\$username\\nYour temporary password: \\$password\\n\\nIf you have any questions, don\'t hesitate to contact us at: \\$contact.\\n\\nBest regards,\\nYour \\$org MISP support team')
  • enable_event_blacklisting (Any) (defaults to: true)
  • enable_org_blacklisting (Any) (defaults to: true)
  • log_client_ip (Any) (defaults to: true)
  • log_auth (Any) (defaults to: false)
  • mangle_push_to_23 (Any) (defaults to: false)
  • delegation (Any) (defaults to: false)
  • show_correlations_on_index (Any) (defaults to: false)
  • show_proposals_count_on_index (Any) (defaults to: false)
  • show_sightings_count_on_index (Any) (defaults to: false)
  • show_discussions_count_on_index (Any) (defaults to: false)
  • disable_user_self_management (Any) (defaults to: false)
  • block_event_alert (Any) (defaults to: false)
  • block_event_alert_tag (Any) (defaults to: 'no-alerts="true"')
  • block_old_event_alert (Any) (defaults to: false)
  • block_old_event_alert_age (Any) (defaults to: 30)
  • rh_shell_fix (Any) (defaults to: false)
  • rh_shell_fix_path (Any) (defaults to: '/opt/rh/rh-php56/root/usr/bin:/opt/rh/rh-php56/root/usr/sbin')
  • tmpdir (Any) (defaults to: '/tmp')
  • custom_css (Any) (defaults to: '')
  • proposals_block_attributes (Any) (defaults to: true)
  • incoming_tags_disabled_by_default (Any) (defaults to: false)
  • completely_disable_correlation (Any) (defaults to: false)
  • allow_disabling_correlation (Any) (defaults to: false)
  • gpg_binary (Any) (defaults to: '/usr/bin/gpg')
  • gpg_onlyencrypted (Any) (defaults to: false)
  • gpg_email (Any) (defaults to: 'no-reply@localhost')
  • gpg_homedir (Any) (defaults to: '/var/www/MISP/')
  • gpg_password (Any) (defaults to: '')
  • gpg_bodyonlyencrypted (Any) (defaults to: false)
  • smime_enabled (Any) (defaults to: false)
  • smime_email (Any) (defaults to: '')
  • smime_cert_public_sign (Any) (defaults to: '')
  • smime_key_sign (Any) (defaults to: '')
  • smime_password (Any) (defaults to: '')
  • proxy_host (Any) (defaults to: '')
  • proxy_port (Any) (defaults to: '')
  • proxy_method (Any) (defaults to: '')
  • proxy_user (Any) (defaults to: '')
  • proxy_password (Any) (defaults to: '')
  • secure_auth_amount (Any) (defaults to: 5)
  • secure_auth_expire (Any) (defaults to: 300)
  • session_auto_regenerate (Any) (defaults to: false)
  • session_defaults (Any) (defaults to: 'php')
  • session_timeout (Any) (defaults to: '60')
  • rpz_policy (Any) (defaults to: 0)
  • rpz_walled_garden (Any) (defaults to: '127.0.0.1')
  • rpz_serial (Any) (defaults to: '$date00')
  • rpz_refresh (Any) (defaults to: '2h')
  • rpz_retry (Any) (defaults to: '30m')
  • rpz_expiry (Any) (defaults to: '30d')
  • rpz_minimum_ttl (Any) (defaults to: '1h')
  • rpz_ttl (Any) (defaults to: '1w')
  • rpz_ns (Any) (defaults to: 'localhost')
  • rpz_email (Any) (defaults to: 'root.localhost')
  • zeromq_enable (Any) (defaults to: false)
  • zeromq_port (Any) (defaults to: 50000)
  • zeromq_redis_host (Any) (defaults to: 'localhost')
  • zeromq_redis_port (Any) (defaults to: 6379)
  • zeromq_redis_password (Any) (defaults to: '')
  • zeromq_redis_database (Any) (defaults to: '1')
  • zeromq_redis_namespace (Any) (defaults to: 'mispq')
  • sightings_enable (Any) (defaults to: false)
  • sightings_policy (Any) (defaults to: 0)
  • sightings_anonymise (Any) (defaults to: false)
  • sightings_range (Any) (defaults to: 365)
  • customauth_enable (Any) (defaults to: false)
  • customauth_header (Any) (defaults to: 'Authorization')
  • customauth_use_header_namespace (Any) (defaults to: true)
  • customauth_header_namespace (Any) (defaults to: 'HTTP_')
  • customauth_required (Any) (defaults to: false)
  • customauth_only_allow_source (Any) (defaults to: '')
  • customauth_name (Any) (defaults to: 'External authentication')
  • customauth_disable_logout (Any) (defaults to: false)
  • customauth_custom_password_reset (Any) (defaults to: '')
  • customauth_custom_logout (Any) (defaults to: '')
  • enrichment_services_enable (Any) (defaults to: true)
  • enrichment_timeout (Any) (defaults to: 10)
  • enrichment_hover_enable (Any) (defaults to: true)
  • enrichment_hover_timeout (Any) (defaults to: 5)
  • enrichment_services_url (Any) (defaults to: 'http://127.0.0.1')
  • enrichment_services_port (Any) (defaults to: 6666)
  • import_services_enable (Any) (defaults to: true)
  • import_timeout (Any) (defaults to: 10)
  • import_services_url (Any) (defaults to: 'http://127.0.0.1')
  • import_services_port (Any) (defaults to: 6666)
  • export_services_url (Any) (defaults to: 'http://127.0.0.1')
  • export_services_port (Any) (defaults to: 6666)
  • export_services_enable (Any) (defaults to: true)
  • export_timeout (Any) (defaults to: 10)
  • cortex_services_enable (Any) (defaults to: false)
  • cortex_services_url (Any) (defaults to: 'http://127.0.0.1/api')
  • cortex_services_port (Any) (defaults to: 9000)
  • cortex_timeout (Any) (defaults to: 120)
  • shib_default_org (Any) (defaults to: '1')
  • egroup_role_match (Any) (defaults to: {})


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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
# File 'manifests/init.pp', line 8

class misp (
  # MISP installation
  # # MISP repositories
  $misp_git_tag = 'v2.4.71',
  $stix_git_repo = 'https://github.com/STIXProject/python-stix.git',
  $stix_git_tag = 'v1.1.1.4',
  $cybox_git_repo = 'https://github.com/CybOXProject/python-cybox.git',
  $cybox_git_tag = 'v2.1.0.12',
  $mixbox_git_repo = 'https://github.com/CybOXProject/mixbox.git',
  $mixbox_git_tag = 'v1.0.2',
  # # Services
  $webservername = 'httpd',
  $redis_server = true,
  # # database.php
  $db_name = 'misp',
  $db_user = 'misp',
  $db_host = 'localhost',
  $db_port = '3306',
  $db_password = '',
  # # Redis DB
  $redis_host = '127.0.0.1',
  $redis_port = 6379,
  $redis_database = 13,
  $redis_password = undef,
  # # config.php
  $debug = 0,
  $site_admin_debug = false,
  # # MISP puppet configuration
  $install_dir = '/var/www/MISP/',
  $config_dir = '/var/www/MISP/app/Config/',
  $timezone = 'UTC',
  $default_user = 'apache',
  $default_group = 'apache',
  $default_high_user = 'root',
  $default_high_group = 'apache',
  # # Security
  $security_level = 'medium',
  $salt = 'Rooraenietu8Eeyo<Qu2eeNfterd-dd+',
  $cipherseed = '',
  $auth_method = '',# Empty means default user-password login method
  $password_policy_length = 6,
  $password_policy_complexity = '/((?=.*\\d)|(?=.*\\W+))(?![\\n])(?=.*[A-Z])(?=.*[a-z]).*$/',
  $sanitise_attribute_on_delete = false,
  $require_password_confirmation = false,
  # # MISP parameters
  $uuid = 0,
  $live = true,
  $enable_advanced_correlations = false,
  $maintenance_message = 'Great things are happening! MISP is undergoing maintenance, but will return shortly. You can contact the administration at \\$email.',
  $footermidleft = '',
  $footermidright = '',
  $footer_logo = '',
  $home_logo = '',
  $main_logo = '',
  $org = 'ORGNAME',
  $host_org_id = '1',
  $showorg = true,
  $threatlevel_in_email_subject = true,
  $email_subject_tlp_string = 'TLP Amber',
  $email_subject_tag = 'tlp',
  $email_subject_include_tag_name = true,
  $background_jobs = true,
  $attachments_dir = 'app/files',
  $cached_attachments = true,
  $email = 'root@localhost',# This address is used as sender (from) when sending notifications
  $disable_emailing = false,
  $contact = 'root@localhost',# This address is used in error messages
  $cveurl = 'http://cve.circl.lu/cve/',
  $disablerestalert = false,
  $extended_alert_subject = true,
  $default_event_distribution = '1',
  $default_attribute_distribution = 'event',
  $default_event_threat_level = '1',
  $tagging = true,
  $full_tags_on_event_index = true,
  $welcome_text_top = '',
  $welcome_text_bottom = '',
  $welcome_logo = '',
  $welcome_logo2 = '',
  $take_ownership_xml_import = false,
  $terms_download = false,
  $terms_file = '',
  $showorgalternate = false,
  $unpublishedprivate = false,
  $new_user_text = 'Dear new MISP user,\\n\\nWe would hereby like to welcome you to the \\$org MISP community.\\n\\n Use the credentials below to log into MISP at \\$misp, where you will be prompted to manually change your password to something of your own choice.\\n\\nUsername: \\$username\\nPassword: \\$password\\n\\nIf you have any questions, don\'t hesitate to contact us at: \\$contact.\\n\\nBest regards,\\nYour \\$org MISP support team',
  $password_reset_text = 'Dear MISP user,\\n\\nA password reset has been triggered for your account. Use the below provided temporary password to log into MISP at \\$misp, where you will be prompted to manually change your password to something of your own choice.\\n\\nUsername: \\$username\\nYour temporary password: \\$password\\n\\nIf you have any questions, don\'t hesitate to contact us at: \\$contact.\\n\\nBest regards,\\nYour \\$org MISP support team',
  $enable_event_blacklisting = true,
  $enable_org_blacklisting = true,
  $log_client_ip = true,
  $log_auth = false,
  $mangle_push_to_23 = false,  # Advised against, FALSE
  $delegation = false,
  $show_correlations_on_index = false,
  $show_proposals_count_on_index = false,
  $show_sightings_count_on_index =  false,
  $show_discussions_count_on_index =  false,
  $disable_user_self_management = false,
  $block_event_alert = false,
  $block_event_alert_tag = 'no-alerts="true"',
  $block_old_event_alert = false,
  $block_old_event_alert_age = 30,
  $rh_shell_fix = false,
  $rh_shell_fix_path = '/opt/rh/rh-php56/root/usr/bin:/opt/rh/rh-php56/root/usr/sbin',
  $tmpdir = '/tmp',
  $custom_css = '',
  $proposals_block_attributes = true,
  $incoming_tags_disabled_by_default = false,
  $completely_disable_correlation = false,
  $allow_disabling_correlation = false,
  # # GPG
  $gpg_binary = '/usr/bin/gpg',
  $gpg_onlyencrypted = false,
  $gpg_email = 'no-reply@localhost',
  $gpg_homedir = '/var/www/MISP/',
  $gpg_password = '',
  $gpg_bodyonlyencrypted = false,
  # # SMIME
  $smime_enabled = false,
  $smime_email = '',
  $smime_cert_public_sign = '',
  $smime_key_sign = '',
  $smime_password = '',
  # # Proxy
  $proxy_host = '',
  $proxy_port = '',
  $proxy_method = '',
  $proxy_user = '',
  $proxy_password = '',
  # # SecureAuth
  $secure_auth_amount = 5,
  $secure_auth_expire = 300,
  # # Session
  $session_auto_regenerate = false,
  $session_defaults = 'php',
  $session_timeout = '60',
  # # Plugin
  $rpz_policy = 0,
  $rpz_walled_garden = '127.0.0.1',
  $rpz_serial = '$date00',
  $rpz_refresh = '2h',
  $rpz_retry = '30m',
  $rpz_expiry = '30d',
  $rpz_minimum_ttl = '1h',
  $rpz_ttl = '1w',
  $rpz_ns = 'localhost',
  $rpz_email = 'root.localhost',
  $zeromq_enable = false,
  $zeromq_port = 50000,
  $zeromq_redis_host = 'localhost',
  $zeromq_redis_port = 6379,
  $zeromq_redis_password = '',
  $zeromq_redis_database = '1',
  $zeromq_redis_namespace = 'mispq',
  $sightings_enable = false,
  $sightings_policy = 0,
  $sightings_anonymise = false,
  $sightings_range = 365,
  $customauth_enable = false,
  $customauth_header = 'Authorization',
  $customauth_use_header_namespace = true,
  $customauth_header_namespace = 'HTTP_',
  $customauth_required = false,
  $customauth_only_allow_source = '',
  $customauth_name = 'External authentication',
  $customauth_disable_logout = false,# TODO
  $customauth_custom_password_reset = '',
  $customauth_custom_logout = '',
  $enrichment_services_enable = true,
  $enrichment_timeout = 10,
  $enrichment_hover_enable = true,
  $enrichment_hover_timeout = 5,
  $enrichment_services_url = 'http://127.0.0.1',
  $enrichment_services_port = 6666,
  $import_services_enable = true,
  $import_timeout = 10,
  $import_services_url = 'http://127.0.0.1',
  $import_services_port = 6666,
  $export_services_url = 'http://127.0.0.1',
  $export_services_port = 6666,
  $export_services_enable = true,
  $export_timeout = 10,
  $cortex_services_enable = false,
  $cortex_services_url = 'http://127.0.0.1/api',
  $cortex_services_port = 9000,
  $cortex_timeout = 120,
  # ApacheShibbAuth
  $shib_default_org = '1',
  $egroup_role_match = {},
) {

  contain '::misp::dependencies'
  contain '::misp::install'
  contain '::misp::config'
  contain '::misp::service'
}