Skip to content

Instantly share code, notes, and snippets.

View salderma's full-sized avatar
🤠

salderma salderma

🤠
View GitHub Profile
@salderma
salderma / gist:7fbd4a786c396cebfb568a464ac2eb8e
Created May 10, 2019 13:47
vagrant ssh key selinux issue
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'centos/7'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'centos/7' version '1902.01' is up to date...
==> default: Setting the name of the VM: centos7_default_1557494786617_24865
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
@salderma
salderma / gist:e2a70dcd6095a518693cf256966ba127
Created March 21, 2019 21:55
PDK .sync.yml with beaker
---
Gemfile:
':system_tests':
- gem: 'puppet-module-posix-system-r#{minor_version}'
platforms: ruby
- gem: beaker
version: '~> 3.13'
from_env: BEAKER_VERSION
- gem: beaker-abs
from_env: BEAKER_ABS_VERSION
@salderma
salderma / Foreman Log
Created February 5, 2014 17:15
Facts Errors after upgrade to 1.4 using node.rb v2
Started POST "/api/hosts/facts" for 10.10.10.10 at 2014-02-05 12:09:17 -0500
Processing by Api::V2::HostsController#facts as JSON
Parameters: {"name"=>"puppet.agent.udayton.edu", "facts"=>"[FILTERED]", "certname"=>"puppet.agent.udayton.edu", "apiv"=>"v2", "host"=>{"name"=>"puppet.agent.udayton.edu", "facts"=>"[FILTERED]", "certname"=>"puppet.agent.udayton.edu"}}
wrong number of arguments (4 for 3) (ArgumentError)
/opt/rh/ruby193/root/usr/local/share/gems/gems/foreman_default_hostgroup-1.0.1/lib/default_hostgroup_managed_host_patch.rb:13:in `importHostAndFacts_with_apply_hostgroup'
/usr/share/foreman/app/controllers/api/v2/hosts_controller.rb:153:in `facts'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/base.rb:167:in `process_action'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/rendering.rb:10:in `process_actio
@salderma
salderma / production.log
Created November 5, 2013 21:51
Foreman Delete Host Debug Log
Started DELETE "/hosts/sanitized.udayton.edu" for 192.168.4.24 at 2013-11-05 16:43:09 -0500
Processing by HostsController#destroy as HTML
Parameters: {"authenticity_token"=>"yRTEWsYO7JW0hEEbcVWRrWyV3q+mPMM47OxR6Y88k38=", "id"=>"sanitized.udayton.edu"}
User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 2]]
Setting current user thread-local variable to salderma
Host::Base Load (0.4ms) SELECT "hosts".* FROM "hosts" WHERE "hosts"."name" = 'sanitized.udayton.edu' LIMIT 1
(0.1ms) BEGIN
FactValue Load (0.6ms) SELECT "fact_values".* FROM "fact_values" WHERE "fact_values"."host_id" = 67
SQL (0.3ms) DELETE FROM "fact_values" WHERE "fact_values"."id" = $1 [["id", 306967]]
SQL (0.1ms) DELETE FROM "fact_values" WHERE "fact_values"."id" = $1 [["id", 301745]]
@salderma
salderma / nrpeyum.te
Created October 30, 2013 15:47
check_yum selinux policy
module nrpeyum 1.0;
require {
type nagios_system_plugin_t;
type net_conf_t;
type tmp_t;
type devlog_t;
type boot_t;
type syslogd_t;
type http_port_t;
@salderma
salderma / shell.out
Last active December 24, 2015 00:09
Solaris 10 puppet-ntp module testing output
[root@solaris1:/]# uname -a
SunOS solaris1 5.10 Generic_147441-27 i86pc i386 i86pc
[root@solaris1:/]# puppet agent --test
info: Retrieving plugin
info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb
info: Loading facts in /var/lib/puppet/lib/facter/last_run.rb
info: Loading facts in /var/lib/puppet/lib/facter/concat_basedir.rb
info: Loading facts in /var/lib/puppet/lib/facter/php_fact_version.rb
info: Loading facts in /var/lib/puppet/lib/facter/php_fact_extension_dir.rb
info: Loading facts in /var/lib/puppet/lib/facter/vmware.rb
@salderma
salderma / cmd_output
Last active December 23, 2015 22:49
Errors trying to load foreman_default_hostgroup plugin
[root@foreman foreman]# pwd
/usr/share/foreman
[root@foreman foreman]# bundle show i18n
/usr/lib/ruby/gems/1.8/gems/i18n-0.6.5
[root@foreman foreman]# ls -l Gemfile*
-rw-r--r--. 1 root root 1037 Sep 3 07:36 Gemfile.in
-rw-r--r--. 1 root root 2151 Sep 25 15:54 Gemfile.lock
-rw-r--r--. 1 root root 102 Sep 25 15:45 Gemfile.sma
[root@foreman foreman]# cat Gemfile.sma
gem 'foreman_default_hostgroup', :git => 'https://github.com/GregSutcliffe/foreman_default_hostgroup'