|
6 | 6 | - Puppet Enterprise 2018.1.1+
|
7 | 7 |
|
8 | 8 | ### - Installation Steps
|
9 |
| ----- |
10 |
| -- First generate a token from Puppet Enterprise in the shell. Make sure to take into account how long you have the token generated. We recommend to at least set it too 12 Months. We will be putting this in the Add-on Menu to help you alert when it about to expire. |
11 |
| -``` |
12 |
| -curl -k -X POST -H 'Content-Type: application/json' -d '{"login": "", "password": "","lifetime": "9y" }' https://$:4433/rbac-api/v1/auth/token |
13 |
| -``` |
14 |
| -- Custom Factor Pull Setup (Option Step) - Make PR if you want to add a default to the pull. |
15 |
| -``` |
16 |
| - for key, value in temp_one_dict1.iteritems(): |
17 |
| - temp_one_dict2[key] = value |
18 |
| - temp_one_dict2['hostname'] = one_dict['facts']['hostname'] |
19 |
| - temp_one_dict2['aio_agent_build'] = one_dict['facts']['aio_agent_build]' |
20 |
| -``` |
21 |
| -- Setup Dictonary Key and then Reference back to API to see how you can browse for specific custom field. Reference Link to API: https://puppet.com/docs/puppetdb/5.2/api/query/v4/resources.html |
22 |
| - |
23 |
| -### - Output of Factors in Json |
24 |
| ----- |
25 |
| -``` |
26 |
| -aio_agent_build: 5.5.6 |
27 |
| - aio_agent_version: 5.5.6 |
28 |
| - architecture: x86_64 |
29 |
| - authenticated: remote |
30 |
| - bios_release_date: 11/29/2017 |
31 |
| - bios_vendor: Xen |
32 |
| - certname: testing1234 |
33 |
| - clientversion: 5.5.6 |
34 |
| - domain: null |
35 |
| - expiration: 09/11/2018 |
36 |
| - extensions: { [-] |
37 |
| - } |
38 |
| - facterversion: 3.11.4 |
39 |
| - filesystems: xfs |
40 |
| - fqdn: testing1234 |
41 |
| - hostname: testing1234 |
42 |
| - ipaddress: 10.1.2,0 |
43 |
| - ipaddress6: fe80::f48a:3947:7787:7775 |
44 |
| - is_virtual: true |
45 |
| - kernel: Linux |
46 |
| - kernelmajversion: 3.10 |
47 |
| - kernelrelease: 3.10.0-693.21.1.el7.x86_64 |
48 |
| - macaddress: f2:64:33:78:12:24 |
49 |
| - operatingsystem: CentOS |
50 |
| - operatingsystemmajrelease: 7 |
51 |
| - operatingsystemrelease: 7.4.1708 |
52 |
| - osfamily: RedHat |
53 |
| - pe_server_url_: automate01 |
54 |
| - platform: x86_64-linux |
55 |
| - processorcount: 8 |
56 |
| - processors: { [-] |
57 |
| - count: 8 |
58 |
| - isa: x86_64 |
59 |
| - models: [ [-] |
60 |
| - Intel(R) Xeon(R) Gold 5115 CPU @ 2.40GHz |
61 |
| - Intel(R) Xeon(R) Gold 5115 CPU @ 2.40GHz |
62 |
| - Intel(R) Xeon(R) Gold 5115 CPU @ 2.40GHz |
63 |
| - Intel(R) Xeon(R) Gold 5115 CPU @ 2.40GHz |
64 |
| - Intel(R) Xeon(R) Gold 5115 CPU @ 2.40GHz |
65 |
| - Intel(R) Xeon(R) Gold 5115 CPU @ 2.40GHz |
66 |
| - Intel(R) Xeon(R) Gold 5115 CPU @ 2.40GHz |
67 |
| - Intel(R) Xeon(R) Gold 5115 CPU @ 2.40GHz |
68 |
| - ] |
69 |
| - physicalcount: 4 |
70 |
| - } |
71 |
| - puppetversion: 5.5.6 |
72 |
| - selinux: true |
73 |
| - serialnumber: bc383f9f-c537-9c11-78f1-2274faf798ec |
74 |
| - sitedir: /opt/puppetlabs/puppet/lib/ruby/site_ruby/2.4.0 |
75 |
| - uptime: 116 days |
76 |
| - uptime_days: 116 |
77 |
| - uptime_hours: 2784 |
78 |
| - uptime_seconds: 10022871 |
79 |
| - uuid: BC383F9F-C537-9C11-78F1-2274FAF798EC |
80 |
| - version: 2.4.4 |
81 |
| - virtual: xenhvm |
82 |
| -``` |
83 |
| - |
84 |
| -### Extended Details Pull Feature Explanation |
85 |
| ----- |
86 |
| -``` |
87 |
| -certname: testing1234 |
88 |
| - configuration_version: 1537159231 |
89 |
| - containing_class: Motd |
90 |
| - containment_path: [ [+] |
91 |
| - ] |
92 |
| - corrective_change: false |
93 |
| - environment: production |
94 |
| - file: /etc/puppetlabs/code/environments/production/modules/motd/manifests/init.pp |
95 |
| - line: 84 |
96 |
| - message: content changed '{md5}91e9830c08a9c585a061401389e48e38' to '{md5}c89ef7290d4031def9b9a4b419ad33a1' |
97 |
| - new_value: {md5}c89ef7290d4031def9b9a4b419ad33a1 |
98 |
| - old_value: {md5}91e9830c08a9c585a061401389e48e38 |
99 |
| - property: content |
100 |
| - report: 6e6b17efc5043981131145fc5593a3dc6602d2cb |
101 |
| - report_receive_time: 2018-09-17T04:41:02.934Z |
102 |
| - resource_title: /etc/motd |
103 |
| - resource_type: File |
104 |
| - run_end_time: 2018-09-17T04:41:02.364Z |
105 |
| - run_start_time: 2018-09-17T04:40:27.861Z |
106 |
| - status: success |
107 |
| - timestamp: 2018-09-17T04:40:38.709Z |
108 |
| -``` |
109 |
| - |
110 |
| -- Configuration state in Pull and reference fields are pulled from the following API. Reference Link to API: https://docs.puppet.com/puppetdb/4.0/api/query/v4/reports.html |
111 |
| - |
112 |
| -### Todos |
113 |
| ----- |
114 |
| - - Adding Test for TravisCI for Splunk App-Inspect |
115 | 9 |
|
116 | 10 | ### Version History
|
117 | 11 | ----
|
|
0 commit comments