Skip to content

Commit

Permalink
Merge pull request #11 from jimmyatSplunk/upgrade-3-0-3
Browse files Browse the repository at this point in the history
Upgrade 3 0 3
  • Loading branch information
codingWithJimmy committed Dec 22, 2021
2 parents 0d96f4d + 5f08069 commit c64cdea
Show file tree
Hide file tree
Showing 915 changed files with 167,251 additions and 11,549 deletions.
45 changes: 10 additions & 35 deletions README.txt
Original file line number Diff line number Diff line change
@@ -1,35 +1,10 @@
BigFix TA
Created by Jimmy Maple

#############################################
################### Setup ###################
#############################################

This add-on utilizes two input methods. The first being the asset list obtained by polling the BigFix REST API. The setup of the REST API input requires a coordination with the BigFix administrator in your environment.

Things to request from the BigFix administrator

1. A console account with login access via REST API only. No other permissions are needed.
2. The account will need to be subsribed to all hosts that will be brought into the asset list.
3. A property the BigFix administrator knows will detail a list of MAC addresses for each host.

If the BigFix administrator does not have a property available, you can use the following relevance to evaluate what is necessary.

if windows of operating system then (mac addresses of adapters of network) else if not windows of operating system then ((mac address of it as string) of ip interfaces whose (not loopback of it AND exists mac address of it) of network) else ""

#############################################
############## Acknowledgments ##############
#############################################

This section is to thank the many people who attirbuted the development of this TA by providing relevance, log files, development licenses, and other support.

Jason Walker
Geetha Alagppan
Mark "Gunny" Collins
Mark Spryer
Eric Howard
Josh Rice
James Stewart
Aram Eblighatian
Jimmy Glass
Keith Hutchison
This is an add-on powered by the Splunk Add-on Builder.
# Binary File Declaration
/opt/splunk/var/data/tabuilder/package/TA-bigfix/bin/ta_bigfix/aob_py3/pvectorc.cpython-37m-x86_64-linux-gnu.so: this file does not require any source code
/opt/splunk/var/data/tabuilder/package/TA-bigfix/bin/ta_bigfix/aob_py3/markupsafe/_speedups.cpython-37m-x86_64-linux-gnu.so: this file does not require any source code
/opt/splunk/var/data/tabuilder/package/TA-bigfix/bin/ta_bigfix/aob_py3/setuptools/cli-32.exe: this file does not require any source code
/opt/splunk/var/data/tabuilder/package/TA-bigfix/bin/ta_bigfix/aob_py3/setuptools/cli-64.exe: this file does not require any source code
/opt/splunk/var/data/tabuilder/package/TA-bigfix/bin/ta_bigfix/aob_py3/setuptools/cli.exe: this file does not require any source code
/opt/splunk/var/data/tabuilder/package/TA-bigfix/bin/ta_bigfix/aob_py3/setuptools/gui-32.exe: this file does not require any source code
/opt/splunk/var/data/tabuilder/package/TA-bigfix/bin/ta_bigfix/aob_py3/setuptools/gui-64.exe: this file does not require any source code
/opt/splunk/var/data/tabuilder/package/TA-bigfix/bin/ta_bigfix/aob_py3/setuptools/gui.exe: this file does not require any source code
16 changes: 4 additions & 12 deletions README/ta_bigfix_settings.conf.spec
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
[logging]
loglevel = <string>
loglevel =

[additional_parameters]
bigfix_server_url = <string>
* Full URL for the BigFix server

bigfix_server_port = <int>
* Management port for BigFix server.
* The default port number from HCL is "52311"
* Customizable by deployment

query_timeout_seconds = <int>
* The amount of time each query sent to the BigFix server waits for a response.
* If there is no response, the query fails and exits the loop.
bigfix_server_url =
bigfix_server_port =
query_timeout_seconds =
2 changes: 2 additions & 0 deletions appserver/static/js/build/0.js

Large diffs are not rendered by default.

1,281 changes: 1,281 additions & 0 deletions appserver/static/js/build/0.licenses.txt

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions appserver/static/js/build/1.js

Large diffs are not rendered by default.

1,281 changes: 1,281 additions & 0 deletions appserver/static/js/build/1.licenses.txt

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions appserver/static/js/build/3.js

Large diffs are not rendered by default.

1,281 changes: 1,281 additions & 0 deletions appserver/static/js/build/3.licenses.txt

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions appserver/static/js/build/4.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions appserver/static/js/build/5.js

Large diffs are not rendered by default.

48 changes: 48 additions & 0 deletions appserver/static/js/build/entry_page.js

Large diffs are not rendered by default.

2,422 changes: 2,422 additions & 0 deletions appserver/static/js/build/entry_page.licenses.txt

Large diffs are not rendered by default.

37 changes: 20 additions & 17 deletions appserver/static/js/build/globalConfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"meta": {
"name": "TA-bigfix",
"displayName": "BigFix TA",
"version": "3.0.1",
"displayName": "HCL BigFix Add-on for Splunk",
"version": "1.0.0",
"apiVersion": "3.0.0",
"restRoot": "TA_bigfix"
"restRoot": "TA_bigfix",
"schemaVersion": "0.0.2"
},
"pages": {
"configuration": {
Expand Down Expand Up @@ -298,8 +299,8 @@
"defaultValue": "default",
"options": {
"endpointUrl": "data/indexes",
"blackList": "^_.*$",
"createSearchChoice": true
"createSearchChoice": true,
"denyList": "^_.*$"
},
"required": true,
"validators": [
Expand Down Expand Up @@ -384,8 +385,8 @@
"defaultValue": "default",
"options": {
"endpointUrl": "data/indexes",
"blackList": "^_.*$",
"createSearchChoice": true
"createSearchChoice": true,
"denyList": "^_.*$"
},
"required": true,
"validators": [
Expand Down Expand Up @@ -443,6 +444,7 @@
"help": "Number of batches to use for ingestion. NOTE: This number should be very large in very large environments.",
"required": true,
"type": "text",
"defaultValue": "1",
"validators": [
{
"type": "string",
Expand Down Expand Up @@ -499,8 +501,8 @@
"defaultValue": "default",
"options": {
"endpointUrl": "data/indexes",
"blackList": "^_.*$",
"createSearchChoice": true
"createSearchChoice": true,
"denyList": "^_.*$"
},
"required": true,
"validators": [
Expand Down Expand Up @@ -543,6 +545,7 @@
"help": "Number of batches to use for ingestion. NOTE: This number should be very large in very large environments.",
"required": true,
"type": "text",
"defaultValue": "1",
"validators": [
{
"type": "string",
Expand Down Expand Up @@ -599,8 +602,8 @@
"defaultValue": "default",
"options": {
"endpointUrl": "data/indexes",
"blackList": "^_.*$",
"createSearchChoice": true
"createSearchChoice": true,
"denyList": "^_.*$"
},
"required": true,
"validators": [
Expand Down Expand Up @@ -700,8 +703,8 @@
"defaultValue": "default",
"options": {
"endpointUrl": "data/indexes",
"blackList": "^_.*$",
"createSearchChoice": true
"createSearchChoice": true,
"denyList": "^_.*$"
},
"required": true,
"validators": [
Expand Down Expand Up @@ -770,8 +773,8 @@
"defaultValue": "default",
"options": {
"endpointUrl": "data/indexes",
"blackList": "^_.*$",
"createSearchChoice": true
"createSearchChoice": true,
"denyList": "^_.*$"
},
"required": true,
"validators": [
Expand Down Expand Up @@ -840,8 +843,8 @@
"defaultValue": "default",
"options": {
"endpointUrl": "data/indexes",
"blackList": "^_.*$",
"createSearchChoice": true
"createSearchChoice": true,
"denyList": "^_.*$"
},
"required": true,
"validators": [
Expand Down
107 changes: 30 additions & 77 deletions appserver/templates/base.html
Original file line number Diff line number Diff line change
@@ -1,87 +1,40 @@
<%!
# retrieve settings
isLite = (cherrypy.config['product_type'] == 'lite' or cherrypy.config['product_type'] == 'lite_free')

if cherrypy.config['product_type'] == 'hunk':
faviconFile = 'favicon_hunk.ico'
elif isLite:
faviconFile = 'favicon_lite.ico'
else:
faviconFile = 'favicon.ico'

faviconFilePath = '/static/img/' + faviconFile

config_qs = dict(autoload=1)
if hasattr(cherrypy.request, 'embed') and cherrypy.request.embed:
config_qs['embed'] = 1
%>\

<%
app_name = app

splk_root = "/static"
app_root = "/".join([splk_root,"app",app_name])

app_js = app_root + '/js'

app_js_build = app_root + '/js/build'
app_css_build = app_root + '/css'

pageJSName = page+'_page'

# optimized js and css
common_css = "%s/common.css" % app_css_build
page_css ="%s/%s.css" % (app_css_build, page)
bootstrap_enterprise_css = "%s/bootstrap-enterprise.css" % app_css_build

page_js = "%s/%s.js" % (app_js_build ,pageJSName)
%>\

<!doctype html>
<!--[if lt IE 7]> <html lang="${i18n.current_lang()[0]|h}" class="no-js ie lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html lang="${i18n.current_lang()[0]|h}" class="no-js ie7 lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html lang="${i18n.current_lang()[0]|h}" class="no-js ie8 lt-ie9"> <![endif]-->
<!--[if IE 9]> <html lang="${i18n.current_lang()[0]|h}" class="no-js ie9"> <![endif]-->
<!--[if gt IE 9]><!-->
<html lang="${i18n.current_lang()[0]|h}" class="no-js"> <!--<![endif]-->
<!--
~ Copyright 2021 Splunk Inc.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
~
-->
<%! app_name = cherrypy.request.path_info.split('/')[3] %>\
<!DOCTYPE html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>${_('Loading...')}</title>
<meta name="description" content="listen to your data" />
<meta name="author" content="Splunk Inc." />
<meta name="viewport" content="width=1024, initial-scale=1.0" />
<link rel="shortcut icon" href="${make_url(faviconFilePath)}" />
<link rel="apple-touch-icon-precomposed" sizes="57x57" href="${make_url('/static/img/bookmark/apple-icon-57x57-precomposed.png')}" />
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="${make_url('/static/img/bookmark/apple-icon-72x72-precomposed.png')}" />
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="${make_url('/static/img/bookmark/apple-icon-114x114-precomposed.png')}" />
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="${make_url('/static/img/bookmark/apple-icon-144x144-precomposed.png')}" />
<meta name="msapplication-TileColor" content="#65A637">
<meta name="msapplication-TileImage" content="${make_url('/static/img/bookmark/ms-tileicon-144x144.png')}">

<link rel="stylesheet" type="text/css" media="all" href="${make_url(bootstrap_enterprise_css)}" />
<link rel="stylesheet" type="text/css" media="all" href="${make_url(common_css)}" />
<link rel="stylesheet" type="text/css" media="all" href="${make_url(page_css)}" />
<script src="${make_url('/static/js/i18n.js')}"></script>
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<title>${_('Loading')}</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="apple-touch-icon" href="apple-touch-icon.png" />
</head>
<body s:app="${app_name}">
<div class="preload">
<div id="placeholder-splunk-bar">
<a href="/app/launcher/home" class="brand" title="splunk &gt; listen to your data">splunk<strong>
&gt;</strong></a>
</div>
<div id="placeholder-app-bar">
</div>
</div>

<div class="addonContainer"></div>
<div class="dialog-placeholder"></div>
<script src="${make_url('/config', _qs=config_qs)}"></script>
<body>
<script src="${make_url('/config?autoload=1')}" crossorigin="use-credentials"></script>
<script src="${make_url('/static/js/i18n.js')}"></script>
<script src="${make_url('/i18ncatalog?autoload=1')}"></script>
<script>
__splunkd_partials__ = ${json_decode(splunkd)};
</script>
<script src="${make_url(app_js_build + '/common.js')}"></script>
<script src="${make_url(page_js)}"></script>

<% page_path = "/static/app/" + app_name + "/js/build/entry_page.js" %>

<script src="${make_url(page_path)}"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion bin/TA_bigfix_rh_bigfix_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
'set_batch_value',
required=True,
encrypted=False,
default=None,
default='1',
validator=validator.String(
min_len=0,
max_len=8192,
Expand Down
2 changes: 1 addition & 1 deletion bin/TA_bigfix_rh_bigfix_clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
'set_batch_value',
required=True,
encrypted=False,
default=None,
default='1',
validator=validator.String(
min_len=0,
max_len=8192,
Expand Down
2 changes: 1 addition & 1 deletion bin/bigfix_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import json

import modinput_wrapper.base_modinput
from solnlib.packages.splunklib import modularinput as smi
from splunklib import modularinput as smi



Expand Down
2 changes: 1 addition & 1 deletion bin/bigfix_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import json

import modinput_wrapper.base_modinput
from solnlib.packages.splunklib import modularinput as smi
from splunklib import modularinput as smi



Expand Down
2 changes: 1 addition & 1 deletion bin/bigfix_available_fixlets.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import json

import modinput_wrapper.base_modinput
from solnlib.packages.splunklib import modularinput as smi
from splunklib import modularinput as smi



Expand Down
2 changes: 1 addition & 1 deletion bin/bigfix_clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import json

import modinput_wrapper.base_modinput
from solnlib.packages.splunklib import modularinput as smi
from splunklib import modularinput as smi



Expand Down
2 changes: 1 addition & 1 deletion bin/bigfix_infrastructure.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import json

import modinput_wrapper.base_modinput
from solnlib.packages.splunklib import modularinput as smi
from splunklib import modularinput as smi



Expand Down
2 changes: 1 addition & 1 deletion bin/bigfix_relevant_fixlets.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import json

import modinput_wrapper.base_modinput
from solnlib.packages.splunklib import modularinput as smi
from splunklib import modularinput as smi



Expand Down
2 changes: 1 addition & 1 deletion bin/bigfix_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import json

import modinput_wrapper.base_modinput
from solnlib.packages.splunklib import modularinput as smi
from splunklib import modularinput as smi



Expand Down
1 change: 1 addition & 0 deletions bin/ta_bigfix/aob_py3/Jinja2-2.11.3.dist-info/INSTALLER
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pip
Loading

0 comments on commit c64cdea

Please sign in to comment.