Skip to content

Instantly share code, notes, and snippets.

View CalvinHartwell's full-sized avatar
💭
Delivering Kubernetes!

Calvin Hartwell CalvinHartwell

💭
Delivering Kubernetes!
View GitHub Profile
@CalvinHartwell
CalvinHartwell / gist:cccbaf0378755c723789
Created October 20, 2015 12:15
RHEL version detection
RHEL7 Version:
Red Hat Enterprise Linux Server release 7.1 (Maipo)
RHEL5 Version:
Red Hat Enterprise Linux Server release 5.11 (Tikanga)
install subscription-manager
drop pem file for subscription manager (key)
/etc/pki/product/Server-Server-x86_64-10746ef5fdef-69.pem
Extract Puppet: tar -Ppxvf /filename
# cat /etc/puppet/puppet.conf
### File managed with puppet ###
## Module: 'puppet'
[main]
# The Puppet log directory.
# The default value is '$vardir/log'.
logdir = /var/log/puppet
# Where Puppet PID files are kept.
https://github.com/theforeman/foreman/pull/2403/files
https://github.com/fog/fog/pull/3570/files
https://github.com/iNecas/fog/commit/73d73cbdaf3d1b6478e0566ace8ceb3d5418c5a4
cat file | grep DX490 |
| grep dx554
| grep dx555
| grep dx557
| grep dx558
| grep dx559
| grep dx566-VM
| grep dx566
| grep dx567
| grep dx568
@CalvinHartwell
CalvinHartwell / gist:0f64e82949f225e0c8aa
Created January 12, 2016 10:05
Satellite 6 API via Capsule 443
25-pulp-node-ssl (config file for httpd pulp)
25-pulp-node-ssl.d (directory for files)
/etc/httpd/conf.d/25-pulp-node-ssl.d/
RewriteEngine on
RewriteRule "^/api/(.*)$" "https://fqdn_replace_me/api/$1" [P]
ProxyPassReverse "/api/" "https://fqdn_replace_me/api/"
RewriteRule "^/katello/api/(.*)$" "https://fqdn_replace_me/katello/api/$1" [P]
ProxyPassReverse "/katello/api/" "https://fqdn_replace_me/katello/api/"
*********************************************************************************
This fff system including all networked equipment and
specifically access to the internet and use of email is provided only for
authorised Partners and other authorised contracted permanent or temporary
employees.
Computer systems may be monitored for all lawful purposes and to ensure that
their use is authorised. All information including personal information
placed on or sent over this system may be monitored.
Showing 5 changed files
app/helpers/concerns/foreman_openscap/hosts_helper_extensions.rb
Wrap text
@@ -12,7 +12,10 @@ module ForemanOpenscap
end
def name_column_with_scap(record)
- record.nil? ? _('Host is deleted') : name_column_without_scap(record)
# Sync Custom Product (Waitrose Puppet Modules) in satellite
sudo -u cloud-user pulp-puppet-module-builder --output-dir=/var/www/html/pub/puppet-modules/ --url="git@10.14.112.91:satellite" --branch=master --path="satellite/"
[root@ukwkmh-vmui010 puppet]# tree
.
├── puppet-builder.sh
└── satellite
└── splunkagent
├── files
@CalvinHartwell
CalvinHartwell / gist:dcf9413d57e9d1bf4b58
Created February 19, 2016 13:08
ERF12-4115 [ProxyAPI::ProxyException]: Klassen für KT_Default_Organization_Library_RHEL7_Rolling_2 konnten nicht von Puppet geladen werden ([RestClient::Forbidden]: 403 Forbidden) für Proxy https://sat.calvinhartwell.com:9090/puppet
ERF12-4115 [ProxyAPI::ProxyException]: Klassen für KT_Default_Organization_Library_RHEL7_Rolling_2 konnten nicht von Puppet geladen werden ([RestClient::Forbidden]: 403 Forbidden) für Proxy https://sat.calvinhartwell.com:9090/puppet