This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# hiera --hash networking.network environment=net_config clientcert='my.host.com' | |
nil | |
# hiera --hash networking environment=net_config clientcert='my.host.com' | |
{"mac_interfaces"=> | |
{"20:60:90:00:C0:40"=> | |
{"ipaddress"=>"10.3.1.2", | |
"enable"=>true, | |
"ensure"=>"present", | |
"bootproto"=>"static", | |
"netmask"=>"255.255.255.0"}}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from kafka import KafkaConsumer | |
from kafka.structs import TopicPartition | |
import argparse | |
import os | |
KAFKA_SERVER='kafka.server.com' | |
KAFKA_PORT=9092 | |
SVN_TOPIC='svnevent' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Only subclasses can override parameters at 13:/etc/puppet/environments/production/modules/myclass/manifests/init.pp on node host1.some.com | |
Warning: Not using cache on failed catalog | |
Error: Could not retrieve catalog; skipping run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# puppet agent --parser=future -t --environment=future_parser | |
Info: Retrieving pluginfacts | |
Info: Retrieving plugin | |
Info: Loading facts in /var/lib/puppet/lib/facter/ip6tables_version.rb | |
Info: Loading facts in /var/lib/puppet/lib/facter/apt_reboot_required.rb | |
Info: Loading facts in /var/lib/puppet/lib/facter/service_provider.rb | |
Info: Loading facts in /var/lib/puppet/lib/facter/apt_update_last_success.rb | |
Info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb | |
Info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb | |
Info: Loading facts in /var/lib/puppet/lib/facter/apt_updates.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# puppet apply --parser=future --trusted_node_data --test --stringify_facts test.pp | |
Info: Loading facts in /var/lib/puppet/lib/facter/ip6tables_version.rb | |
Info: Loading facts in /var/lib/puppet/lib/facter/apt_reboot_required.rb | |
Info: Loading facts in /var/lib/puppet/lib/facter/service_provider.rb | |
Info: Loading facts in /var/lib/puppet/lib/facter/apt_update_last_success.rb | |
Info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb | |
Info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb | |
Info: Loading facts in /var/lib/puppet/lib/facter/apt_updates.rb | |
Info: Loading facts in /var/lib/puppet/lib/facter/package_provider.rb | |
Info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node x.some.com { | |
users::collect_present_users(['tag1','cluster1']) | |
users::collect_absent_users(['tag1','cluster1']) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[pakiti] | |
mypakiti.stanford.edu | |
[report] | |
localhost ansible_connection=local ansible_become=False patch_priority=0 | |
[blacklist] | |
failedhost1.stanford.edu # Incorrect sudo password | |
failedhost2.stanford.edu # SyntaxError: probably due to installed simplejson being for a different python version; easy_install'ed simplejson which breaks things |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%if 0%{?scl:1} | |
%scl_package webauth | |
%global sub_prefix sclo-%{scl_prefix} | |
%endif | |
%if 0%{?scl:1} | |
%define scl_prefix httpd24 | |
%{!?_httpd24_apxs: %{expand: %%global _httpd24_apxs %%{_sbindir}/apxs}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@compute ~]# nova secgroup-list | |
+--------------------------------------+------------+-----------------+ | |
| Id | Name | Description | | |
+--------------------------------------+------------+-----------------+ | |
| cc36ac51-919c-4bcc-b621-838a2475d646 | db_client | DB Access group | | |
| ebb74efc-0cfb-4bb6-86a6-d36aa748a64c | db_server | DB Server | | |
| 5e4ab003-4ed2-4b72-9c85-e63b2c0daead | default | default | | |
| 692737cb-99c5-4f51-bf83-1540107fa010 | web_server | Web Server | | |
+--------------------------------------+------------+-----------------+ | |
[root@compute ~]# nova secgroup-list-rules 5e4ab003-4ed2-4b72-9c85-e63b2c0daead |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PLAY [all] ******************************************************************** | |
GATHERING FACTS *************************************************************** | |
<defined.host.com> REMOTE_MODULE setup | |
<undefined.host.com> REMOTE_MODULE setup | |
ok: [defined.host.com] | |
ok: [undefined.host.com] | |
TASK: [debug var=hostvars[inventory_hostname]['my_groups'].keys()] ************ |