Skip to content

Instantly share code, notes, and snippets.

configure
# Configure Firewall
set firewall ipv6-name IPV6WAN_IN description 'IPV6WAN to internal'
set firewall ipv6-name IPV6WAN_IN default-action drop
set firewall ipv6-name IPV6WAN_IN rule 10 action accept
set firewall ipv6-name IPV6WAN_IN rule 10 state established enable
set firewall ipv6-name IPV6WAN_IN rule 10 state related enable
set firewall ipv6-name IPV6WAN_IN rule 10 log disable
#vhost template file
<Virtualhost *:<%= @port %> >
ServerName <%= @domain %>
DocumentRoot <%= @document_root %>
<Directory />
Options FollowSymLinks
AllowOverride None
2016-03-18 15:21:56,906 [qtp2068350304-32] INFO grails.app.services.rundeck.services.ScheduledExecutionService - scheduling immediate job run: TEMP:rfoster:88:2261
2016-03-18 15:21:56,924 [quartzScheduler_Worker-3] WARN grails.app.jobs.rundeck.quartzjobs.ExecutionJob - ExecutionJob: Execution not found with ID [2261], will retry for up to 60 seconds...
2016-03-18 15:21:58,926 [quartzScheduler_Worker-3] INFO grails.app.jobs.rundeck.quartzjobs.ExecutionJob - ExecutionJob: Execution found with ID [2261] retried (1)
2016-03-18 15:21:59,295 [quartzScheduler_Worker-3] ERROR com.dtolabs.rundeck.core.resources.ExceptionCatchingResourceModelSource - [ResourceModelSource: 1.com.batix.rundeck.AnsibleResourceModelSourceFactory (Ansible Resource Model Source), project: Ansible-Console]
com.dtolabs.rundeck.core.resources.ResourceModelSourceException: Error reading facts.
at com.batix.rundeck.AnsibleResourceModelSource.getNodes(AnsibleResourceModelSource.java:217)
at com.dtolabs.rundeck.core.resources.ExceptionCatchin
@rilindo
rilindo / gist:8b2670ee4bbac07021c8
Created March 18, 2016 15:21
ansible-rundeck service log
INFO ScheduledExecutionService: scheduling immediate job run: TEMP:rfoster:88:2260
ERROR ExceptionCatchingResourceModelSource: [ResourceModelSource: 1.com.batix.rundeck.AnsibleResourceModelSourceFactory (Ansible Resource Model Source), project: Ansible-Console]
com.dtolabs.rundeck.core.resources.ResourceModelSourceException: Error reading facts.
at com.batix.rundeck.AnsibleResourceModelSource.getNodes(AnsibleResourceModelSource.java:217)
at com.dtolabs.rundeck.core.resources.ExceptionCatchingResourceModelSource.getNodes(ExceptionCatchingResourceModelSource.java:45)
at com.dtolabs.rundeck.core.common.ProjectNodeSupport.getNodeSet(ProjectNodeSupport.java:88)
at com.dtolabs.rundeck.server.projects.RundeckProject.getNodeSet(RundeckProject.java:55)
at com.dtolabs.rundeck.core.common.IRundeckProject$getNodeSet$3.call(Unknown Source)
at rundeck.services.FrameworkService$_filterNodeSet_closure4.doCall(FrameworkService.groovy:283)
at rundeck.services.FrameworkService$_filterNodeSet_closure4.doCall(FrameworkSe
@rilindo
rilindo / gist:c940318e840a0f1cc569
Created February 12, 2016 22:59
Trying to delete rpm
[root@i-ddac85 ~]# yum erase rpm
Loaded plugins: fastestmirror, langpacks
Resolving Dependencies
--> Running transaction check
---> Package rpm.x86_64 0:4.11.3-17.el7 will be erased
--> Processing Dependency: rpm for package: policycoreutils-2.2.5-20.el7.x86_64
--> Processing Dependency: rpm = 4.11.3-17.el7 for package: rpm-libs-4.11.3-17.el7.x86_64
--> Processing Dependency: rpm = 4.11.3-17.el7 for package: rpm-python-4.11.3-17.el7.x86_64
--> Processing Dependency: rpm >= 4.4.2 for package: yum-3.4.3-132.el7.centos.0.1.noarch
--> Running transaction check
@rilindo
rilindo / gist:39cc42f80705114f3441
Created February 6, 2016 03:12
The right way to forward ports
firewall-cmd --zone=public --add-masquerade
firewall-cmd --add-forward-port port=4404:proto=tcp:toport=22:toaddr=192.168.15.10
13 nmcli con add type bond con-name bond0 ifname bond0 mode balance-rr ip4 192.168.15.254/24 gw4 192.168.15.1
14 ip addr show
15 nmcli con add type bond-slave ifname ens8 master bond0
16 nmcli con add type bond-slave ifname ens3 master bond0
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout `pwd`/apache.key -out `pwd`/apache.crt
NameVirtualHost *:80
NameVirtualHost *:443
<VirtualHost *:80>
ServerAlias test
DocumentRoot /var/www/html
ServerName test.monzell.com
</VirtualHost>
"ElasticGroup": {
"Type": "AWS::EC2::SecurityGroup",
"Properties": {
"VpcId": {
"Ref": "VPC"
},
"GroupDescription": "Enable ports for app",
"SecurityGroupIngress": [
{
"IpProtocol": "tcp",
@rilindo
rilindo / football_seth.rb
Created February 4, 2015 03:14
football_seth
#!/usr/bin/env ruby
FOOTBALLSEASON = 119
# According to wikipedia - http://en.wikipedia.org/wiki/National_Football_League_regular_season
# 7 days * 17 weeks = 119. If I am wrong, hey, football is not my belief system. :)
def what_to_wear(football_day)
if (football_day < 0)
puts "Football season hasn't started yet, Seth."