Commit graph

238 commits

Author SHA1 Message Date
Nick Chappell
6ad25eee99 Added a types parameter to the user object and rendering of it to the ERB template. 2014-08-03 19:15:57 -07:00
Nick Chappell
086a300b1f Added a period parameter to the user object and rendering of it to the ERB template. 2014-08-03 19:14:02 -07:00
Nick Chappell
92e7a4f5e7 Added an enable_notifications parameter to the user object and rendering of it to the ERB template. 2014-08-03 18:27:46 -07:00
Nick Chappell
7b5f7a994f Added a groups parameter to the user object and rendering of it to the ERB template. 2014-08-03 18:26:36 -07:00
Nick Chappell
f9193d14f7 Added a vars parameter to the user object and rendering of it to the ERB template. 2014-08-03 18:24:26 -07:00
Nick Chappell
89b3e25e9a Added a pager parameter to the user object and rendering of it to the ERB template. 2014-08-03 18:23:28 -07:00
Nick Chappell
d5173611f4 Added an email parameter to the user object and rendering of it to the ERB template. 2014-08-03 18:20:29 -07:00
Nick Chappell
341f66433e Added a display_name parameter to the user object and rendering of it to the ERB template. 2014-08-02 22:28:34 -07:00
Nick Chappell
90ffb35e20 Added an object_username parameter. 2014-08-02 22:03:38 -07:00
Nick Chappell
ae0ca7e7f5 Added a skeleton user object and accompanying ERB template. 2014-08-02 22:01:15 -07:00
Nick Chappell
2b766285b2 Added an object defined type for applying services to hosts; also included an ERB template to render the object files. 2014-07-30 22:34:55 -07:00
Nick Chappell
06cd9ece88 Added a parameter and default value for the ignore_where parameter; added it to the service object ERB template. 2014-07-29 17:21:10 -07:00
Nick Chappell
e498643750 Remove trailing whitespace. 2014-07-29 08:33:32 -07:00
Nick Chappell
5f614ce97d Added a parameter and default value for the icon_image_alt parameter; added it to the service object ERB template. 2014-07-28 21:06:28 -07:00
Nick Chappell
90f256fea0 Added a parameter and default value for the icon_image parameter; added it to the service object ERB template. 2014-07-28 21:05:39 -07:00
Nick Chappell
81c52e9862 Added a parameter and default value for the action_url parameter; added it to the service object ERB template. 2014-07-28 21:04:54 -07:00
Nick Chappell
c9e90c6ff0 Added a parameter and default value for the notes_url parameter; added it to the service object ERB template. 2014-07-28 21:02:39 -07:00
Nick Chappell
65bd120e0d Added a parameter and default value for the notes parameter; added it to the service object ERB template. 2014-07-28 21:02:00 -07:00
Nick Chappell
40a6e5fb46 Added a parameter and default value for the volatile parameter; added it to the service object ERB template. 2014-07-28 20:57:43 -07:00
Nick Chappell
273b488c22 Added a parameter and default value for the flapping_threshold parameter; added it to the service object ERB template. 2014-07-28 20:52:23 -07:00
Nick Chappell
c715924797 Added a parameter and default value for the event_command parameter; added it to the service object ERB template. 2014-07-28 20:51:40 -07:00
Nick Chappell
d47a3ddee5 Added a parameter and default value for the enable_perfdata parameter; added it to the service object ERB template. 2014-07-28 20:50:07 -07:00
Nick Chappell
9bddcc25a0 Added a parameter and default value for the enable_flap_detection parameter; added it to the service object ERB template. 2014-07-28 20:49:27 -07:00
Nick Chappell
a22add7d56 Added a parameter and default value for the enable_event_handler parameter; added it to the service object ERB template. 2014-07-28 20:47:45 -07:00
Nick Chappell
31936ee5e7 Added a parameter and default value for the enable_passive_checks parameter; added it to the service object ERB template. 2014-07-28 20:46:44 -07:00
Nick Chappell
4b4079f7e8 Added a parameter and default value for the enable_active_checks parameter; added it to the service object ERB template. 2014-07-28 20:45:53 -07:00
Nick Chappell
91f67557eb Added a parameter and default value for the enable_notifications parameter; added it to the service object ERB template. 2014-07-28 20:43:38 -07:00
Nick Chappell
a1aa063e42 Added a parameter and default value for the retry_interval parameter; added it to the service object ERB template. 2014-07-28 20:42:53 -07:00
Nick Chappell
f2c44a9e1b Added a parameter and default value for the check_interval parameter; added it to the service object ERB template. 2014-07-28 20:42:05 -07:00
Nick Chappell
83bea379db Added a parameter and default value for the check_period parameter; added it to the service object ERB template. 2014-07-28 20:38:12 -07:00
Nick Chappell
b5251ef8c6 Added a parameter and default value for the max_check_attempts parameter; added it to the service object ERB template. 2014-07-28 20:37:03 -07:00
Nick Chappell
022abb8cdf Added a parameter and default value for the check_command parameter; added it to the service object ERB template. 2014-07-28 19:30:55 -07:00
Nick Chappell
948b5b68aa Added a parameter and default value for the vars parameter; added it to the service object ERB template. 2014-07-28 19:26:39 -07:00
Nick Chappell
90d22283aa Added a parameter and default value for the groups parameter; added it to the service object ERB template. 2014-07-28 19:24:39 -07:00
Nick Chappell
a66de2fe38 Removing the name parameter from the lists of parameters to add since it's part of the template and defined type already. 2014-07-28 19:23:48 -07:00
Nick Chappell
ec0a3b1bd5 Added a parameter and default value for the host_name parameter; added it to the service object ERB template. 2014-07-28 19:22:00 -07:00
Nick Chappell
3b931c2068 Added a parameter and default value for the display_name parameter; added it to the service object ERB template. 2014-07-28 19:17:11 -07:00
Nick Chappell
2419d0d58f Added a parameter for a template that can be imported; added it to the service object ERB template. 2014-07-28 19:15:10 -07:00
Nick Chappell
e0de7f8c45 Added an object_servicename parameter; this isn't part of the service object spec on the Icinga 2 docs, but I use it internally in the template. 2014-07-28 19:12:32 -07:00
Nick Chappell
99465d00b7 Added a list of parameters that need to be added to the service object defined type manifest. 2014-07-28 19:07:50 -07:00
Nick Chappell
b592b93b58 Added file parameters and default values for the service object defined type. 2014-07-28 18:59:09 -07:00
Nick Chappell
b6c832524b Added a skeleton defined type for service objects. 2014-07-28 18:57:07 -07:00
Nick Chappell
9ce8678b7b Added more header comments. 2014-07-28 18:49:09 -07:00
Nick Chappell
d9695544ad Added an icon_image_alt parameter and redering of it in the host object ERB template; removed it from the lists of needed parameters. 2014-07-26 21:19:21 -07:00
Nick Chappell
e16704399e Added an icon_image parameter and redering of it in the host object ERB template; removed it from the lists of needed parameters. 2014-07-26 21:18:38 -07:00
Nick Chappell
3e84b13e5b Added an action_url parameter and redering of it in the host object ERB template; removed it from the lists of needed parameters. 2014-07-26 21:18:01 -07:00
Nick Chappell
a99d56aab2 Added a notes_url parameter and redering of it in the host object ERB template; removed it from the lists of needed parameters. 2014-07-26 21:16:05 -07:00
Nick Chappell
b366738fd9 Added a notes parameter and redering of it in the host object ERB template; removed it from the lists of needed parameters. 2014-07-26 21:15:01 -07:00
Nick Chappell
16a558c534 Added a volatile parameter and redering of it in the host object ERB template; removed it from the lists of needed parameters. 2014-07-26 21:14:20 -07:00
Nick Chappell
6809afc9b9 Added a flapping_threshold parameter and redering of it in the host object ERB template; removed it from the lists of needed parameters. 2014-07-26 21:12:29 -07:00
Nick Chappell
7942e8a3b7 Added an event_command parameter and redering of it in the host object ERB template; removed it from the lists of needed parameters. 2014-07-26 21:10:25 -07:00
Nick Chappell
8012897f6b Added an enable_perfdata parameter and redering of it in the host object ERB template; removed it from the lists of needed parameters. 2014-07-26 21:08:09 -07:00
Nick Chappell
6981ccf12d Added an enable_flap_detection parameter and redering of it in the host object ERB template; removed it from the lists of needed parameters. 2014-07-26 20:53:07 -07:00
Nick Chappell
3f1b1847be Added an enable_event_handler parameter and redering of it in the host object ERB template; removed it from the lists of needed parameters. 2014-07-26 20:50:26 -07:00
Nick Chappell
55c81ab2a1 Added an enable_passive_checks parameter and redering of it in the host object ERB template; removed it from the lists of needed parameters. 2014-07-26 20:47:24 -07:00
Nick Chappell
5c5d88eee6 Added an enable_active_checks parameter and redering of it in the host object ERB template; removed it from the lists of needed parameters. 2014-07-26 20:45:48 -07:00
Nick Chappell
ad45f44542 Added an enable_notifications parameter and redering of it in the host object ERB template; removed it from the lists of needed parameters. 2014-07-26 20:41:31 -07:00
Nick Chappell
f28dcf90a6 Added a retry_interval parameter and redering of it in the host object ERB template; removed it from the lists of needed parameters. 2014-07-26 20:19:41 -07:00
Nick Chappell
ca7438d798 Added a check_interval parameter and redering of it in the host object ERB template; removed it from the lists of needed parameters. 2014-07-26 20:16:56 -07:00
Nick Chappell
b9a64802f8 Added a check_period parameter and redering of it in the host object ERB template; removed it from the lists of needed parameters. 2014-07-26 20:15:55 -07:00
Nick Chappell
7b51e2d4f2 Added a max_check_attempts parameter and redering of it in the host object ERB template; removed it from the lists of needed parameters. 2014-07-26 19:10:44 -07:00
Nick Chappell
6dad69c02a Added a check_command parameter and redering of it in the host object ERB template; removed it from the lists of needed parameters. 2014-07-26 18:59:25 -07:00
Nick Chappell
c5d1b96fdf Changed default value of the IPv6 address parameter to undef so that we don't get address6 set in a host definition to an IPv4 address that facter returns. 2014-07-26 18:20:59 -07:00
Nick Chappell
999964f09a Added a list of parameters that still need to be added to the ::object::host class as comments. 2014-07-26 18:06:28 -07:00
Nick Chappell
e099b9c1d3 Renamed the objects file and directory. 2014-07-26 17:08:47 -07:00
Nick Chappell
bf8cde0053 Renamed objects:: class to object:: since each defined type is for a single object type. 2014-07-26 17:07:03 -07:00
Nick Chappell
1927d0377e Added a hostgroup defined type. 2014-07-20 20:40:22 -07:00
Nick Chappell
bdf994929f Deleted the duplicate client.pp and client/ directories. 2014-07-20 17:37:57 -07:00
Nick Chappell
f4e07050fc Renamed the icinga2::client class to icinga2::nrpe; this is mainly to accomodate other potential tyes of clients in the future, like NSCA or the Icinga 2 agent. 2014-07-20 17:35:20 -07:00
Nick Chappell
4d5c93d32a Wrapped the server plugin install in an if statement so that installing the plugins packages depends on the parameter being set to true. 2014-07-20 17:05:11 -07:00
Nick Chappell
507fc377ff Added a parameter for picking whether to install the Nagios plugins packages on nodes with the icinga2::server class applied. 2014-07-20 17:04:25 -07:00
Nick Chappell
a8640bef22 Added an array for a groups parameter and a hash for a vars parameter. 2014-07-10 21:04:51 -07:00
Nick Chappell
441216a3c4 Added parameters to specify the target file's owner, group and mode. 2014-07-10 19:44:49 -07:00
Nick Chappell
8054821d60 Merge branch 'feature/object_defined_types' into develop 2014-07-09 22:21:13 -07:00
Nick Chappell
0437d4d69a Added a basic defined type for Icinga 2 host objects; added an accompanying template.
This is really basic now. I'll add more parameters to it later on.
2014-07-09 22:20:08 -07:00
Nick Chappell
125f29a811 Added the package to Ubuntu 12.04 and 14.04 that contains the NRPE plugin, check_nrpe. 2014-07-08 18:53:34 -07:00
Nick Chappell
33ff28b86d Add parameters for Nagios plugin pacakges and install them with a package resource in the icinga2::server::packages class so we can get the Nagios plugin packages Icinga 2 servers. 2014-07-05 22:00:20 -07:00
Nick Chappell
5ce282fdc8 Added an empty class file for icinga2::objects so that we can keep all of the object types in their own subclass and directory hierarchy. 2014-07-05 18:12:36 -07:00
Nick Chappell
70e0f29dfc Added directories for template, constant and apply objects. 2014-07-05 18:10:37 -07:00
Nick Chappell
98022e2910 Add directory resources for /etc/icinga2/objects and subdirectories underneath it for each object type outlined on: http://docs.icinga.org/icinga2/latest/doc/module/icinga2/toc#icinga2#object-types. 2014-07-05 16:35:16 -07:00
Nick Chappell
d354aaffcd Added parameters for /etc/icinga2/objects/ and its subfolders. 2014-07-05 16:33:10 -07:00
Nick Chappell
9c83a449e0 Added a subsection for server service parameters and case statement to pick the Icinga 2 daemon name based on the OS; added a service resource for the Icinga 2 daemon; uncommented the squiggly arrows so the icinga2::server::service class gets applied. 2014-07-05 15:58:05 -07:00
Nick Chappell
995f4877a7 Added a subsection for server service parameters. 2014-07-05 15:56:55 -07:00
Nick Chappell
616784a032 Added a directory resource for /etc/icinga2/zones.d/. 2014-07-05 15:49:28 -07:00
Nick Chappell
5d5209883e Added a directory resource for /etc/icinga2/scripts/. 2014-07-05 15:48:49 -07:00
Nick Chappell
01bab8b187 Added a directory resource for /etc/icinga2/pki/. 2014-07-05 15:47:37 -07:00
Nick Chappell
414849941d Added a directory resource for /etc/icinga2/features-enabled. 2014-07-05 15:47:04 -07:00
Nick Chappell
6489063193 Added a file resource for /etc/icinga2/features-available/. 2014-07-05 15:43:00 -07:00
Nick Chappell
42af2a2f95 Added a file resource for /etc/icinga2/conf.d/. 2014-07-05 15:41:47 -07:00
Nick Chappell
5a6e78d47d Added a file resource for /etc/icinga2/icinga2.conf. 2014-07-05 15:36:56 -07:00
Nick Chappell
82a3cf983c Added a directory resource for /etc/icinga2/. 2014-07-05 15:24:13 -07:00
Nick Chappell
d4f6484702 Uncomment chaining arrows so that we apply the icinga2::server::config class after the icinga2::server::install class. 2014-07-05 15:23:54 -07:00
Nick Chappell
061fffb235 Added parameters that will get used in directory resources for /etc/icinga2/pki/ and /etc/icinga2/scripts/. 2014-07-05 15:17:37 -07:00
Nick Chappell
8d6deb2a16 Added file and directory owner, group and mode parameters. 2014-07-05 15:06:41 -07:00
Nick Chappell
1d3b9a1942 Added server config parameter subsection. 2014-07-05 13:57:47 -07:00
Nick Chappell
c1483d1034 Include the ::server class, not the ::params class. 2014-07-05 13:51:36 -07:00
Nick Chappell
4e8d08e186 Added a defined type for NRPE plugins. 2014-07-05 13:50:18 -07:00
Nick Chappell
3f1ecdab02 Added icinga2::client::service class. 2014-07-05 13:50:02 -07:00
Nick Chappell
2de27c7b07 Added icinga2::client::config. 2014-07-05 13:49:50 -07:00
Nick Chappell
8525d09a4b Added a defined type for NRPE command definitions. 2014-07-05 13:49:36 -07:00
Nick Chappell
ac8dc07e4a Added icinga2::client::install class and subclasses. 2014-07-05 13:49:09 -07:00
Nick Chappell
2119edc758 Added main client class. 2014-07-05 13:48:48 -07:00
Nick Chappell
a799e3184c Whitespace. 2014-07-05 12:45:22 -07:00
Nick Chappell
01f3a09473 Added client package parameters. 2014-07-05 12:38:24 -07:00
Nick Chappell
a1d7f73cb5 Added client service parameters. 2014-07-05 12:35:17 -07:00
Nick Chappell
e39572b2d6 Added client parameters. 2014-07-05 12:34:58 -07:00
Nick Chappell
82ed5e4ce8 Added client parameters section. 2014-07-05 12:33:53 -07:00
Nick Chappell
5a704bff36 Move the common package parameters into the right subsection. 2014-07-05 12:32:37 -07:00
Nick Chappell
9825a61032 Add common package parameter ssection. 2014-07-05 12:31:48 -07:00
Nick Chappell
ddac1242b5 Remove the package provider parameters from the server section; create a new common parameters section. 2014-07-05 12:31:16 -07:00
Nick Chappell
a7f1bf9c54 Reorganized parameters. 2014-07-05 12:21:41 -07:00
Nick Chappell
b7c593e63a Made new section and subsection headers since we're going to add client parameters soon. 2014-07-05 12:20:31 -07:00
Nick Chappell
42f1429e14 Load the DB schema as the Icinga 2 DB user so that the tables are owned by the DB user instead of the 'postgres' DB user. 2014-07-04 20:32:31 -07:00
Nick Chappell
e0248a653c Comments. 2014-07-04 12:43:25 -07:00
Nick Chappell
30a2941a08 Added an exec to load the MySQL IDO module. 2014-07-03 22:40:02 -07:00
Nick Chappell
cea6ab147e Added an exec to enable the Postgres IDO module. 2014-07-03 22:30:56 -07:00
Nick Chappell
44c98f5fee Added exec to load the MySQL schema. 2014-07-03 20:37:48 -07:00
Nick Chappell
16ce34d7a0 Changed includes and a variable name. 2014-07-03 20:36:38 -07:00
Nick Chappell
d750ebd738 Moved the logic to determine the path of the DB schema to the main icinga2::server class. 2014-07-03 20:35:52 -07:00
Nick Chappell
87318a1722 Replace the hard-coded path for the SQL schema file with the variable from params.pp. 2014-07-02 21:54:19 -07:00
Nick Chappell
4fa10d3d32 Added Postgres schema loading; added database connection info parameters. 2014-07-02 19:54:25 -07:00
Nick Chappell
8d400511a1 Create skeleton case statement for DB schema loading later on. 2014-07-02 19:32:24 -07:00
Nick Chappell
cd067dced4 Use the right paths for the schema files on Debian/Ubuntu systems. 2014-07-02 19:03:00 -07:00
Nick Chappell
9a71775038 Added logic to select the right DB schema file to load on Debian/Ubuntu. 2014-06-30 21:46:32 -07:00
Nick Chappell
ebab78476d Removed logic to select stuff based on the Ubuntu release; it's not needed. 2014-06-30 21:45:51 -07:00
Nick Chappell
c6689a061f Added logic to select the right DB schema file to load on RHEL/CentOS. 2014-06-30 21:44:43 -07:00
Nick Chappell
51a408af92 Install the DB connector package. 2014-06-29 23:05:37 -07:00
Nick Chappell
7bebc9612e Moved up server_db_type variable and added a comment on what the following code block is for. 2014-06-29 23:04:56 -07:00
Nick Chappell
876878cd52 Install the Icinga 2 pacakge. 2014-06-29 21:45:32 -07:00
Nick Chappell
d0a23c9889 Added package repo installation for RHEL/CentOS and Debian/Ubuntu. 2014-06-29 21:06:38 -07:00
Nick Chappell
a7d81822f8 Added skeleton sublcasses to the icinga2::server::install class. 2014-06-28 22:18:24 -07:00
Nick Chappell
6b4d6972e8 Added lightweight anchor pattern to the icinga2::server class. 2014-06-28 22:13:00 -07:00
Nick Chappell
f7da4468b6 Added lightweight anchor pattern to the icinga2::server::install class. 2014-06-28 22:05:37 -07:00
Nick Chappell
432cb752a4 Fix typo. 2014-06-28 22:04:08 -07:00
Nick Chappell
934362be4d Added case statements to pick the right package names and providers based on the OS; added skeleton case statement to pick the right settings for different Ubuntu releases. 2014-06-28 21:25:51 -07:00
Nick Chappell
ba90a87f8c Added skeleton icinga2::server classes and subclasses. 2014-06-27 21:40:02 -07:00
Nick Chappell
3e959201cd Added a skeleton icinga2::params class. 2014-06-27 21:39:42 -07:00
Nick Chappell
4c68e69921 Initial commit. 2014-05-02 19:36:32 -07:00