This file contains hidden or 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
#!/bin/sh | |
# | |
# JBoss Control Script | |
# | |
### BEGIN INIT INFO | |
# Provides: jbossas | |
# Required-Start: $network $syslog | |
# Required-Stop: $network $syslog | |
# Default-Start: | |
# Default-Stop: |
This file contains hidden or 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 "mymachine" { | |
include main | |
class { | |
"main::extra": | |
myparam => "variable"; | |
} | |
} | |
class main { | |
file { |
This file contains hidden or 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
For instance Puppet server will not start under RHEL SELinux. Try to start it, then run the following script. Continue this cycle until it starts. It will probably work for different SELinux challenges as well. | |
The script requires: | |
$yum install policycoreutils-python | |
cd /tmp && \ | |
cat /var/log/audit/audit.log | audit2allow -m puppetmaster > puppetmaster.te && \ | |
checkmodule -M -m puppetmaster.te -o puppetmaster.mod && \ | |
semodule_package -m puppetmaster.mod -o puppetmaster.pp && \ | |
semodule -i puppetmaster.pp |
This file contains hidden or 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
<VirtualHost *:80> | |
DocumentRoot /var/yum.example.net/htdocs | |
ServerName yum.example.net | |
Options -Indexes -FollowSymlinks | |
<Directory "/var/yum.example.net/htdocs/yum"> | |
AllowOverride None | |
Options +Indexes | |
Order allow,deny |
This file contains hidden or 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
#!/bin/bash | |
# | |
# Directory layout: | |
# 5Server/noarch | |
# 5Server/x86_64 | |
# 6Server/noarch | |
# 6Server/x86_64 | |
# Place the RPM packages in their respective arch folder, and run this script. | |
# | |
ROOT_DIR=`pwd` |
This file contains hidden or 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
/home/specs/.rvm/gems/ruby-1.9.3-p0/gems/RedCloth-4.2.8/lib/redcloth.rb:10: Use RbConfig instead of obsolete and deprecated Config. | |
You did not specify how you would like Rails to report deprecation notices for your production environment, please set config.active_support.deprecation to :notify at config/environments/production.rb | |
/home/specs/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:239:in `block in require': iconv will be deprecated in the future, use String#encode instead. | |
.........FFFF..............FFFFF....FFFFF....FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF........................................................................FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF....FFF.........FFFFFFFFFFFFFFFFFFFFFFFF..FFFFFFF..............F...*...F......................*...............F...............FFFFF.....F.FFFFF.FF.FFFFFFF.......F......................F....FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFNot validating feed bec |
This file contains hidden or 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
# cat /Users/larstobi/bin/weblogin | |
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'mechanize' | |
agent = Mechanize.new | |
page = agent.get('http://webportal.login/aaa/wba_login.html') | |
login_form = page.form('weblogin') | |
login_form.username = 'MYUSER' |
This file contains hidden or 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
class myrailsapp { | |
$railspath = '/usr/share' | |
} | |
class apache::vhost::myrailsapp inherits apache::vhost { | |
notify{"RAILSPATH: ${myrailsapp::railspath}":} | |
} |
This file contains hidden or 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@myhost ~]# puppet agent --test --noop | |
info: Retrieving plugin | |
notice: /File[/var/lib/puppet/lib]/mode: mode changed '775' to '755' | |
notice: /File[/var/lib/puppet/lib/puppet]/mode: mode changed '775' to '755' | |
notice: /File[/var/lib/puppet/lib/facter]/mode: mode changed '775' to '755' | |
notice: /File[/var/lib/puppet/lib/puppet/parser]/mode: mode changed '775' to '755' | |
notice: /File[/var/lib/puppet/lib/puppet/parser/functions]/mode: mode changed '775' to '755' | |
notice: /File[/var/lib/puppet/lib/puppet/provider]/mode: mode changed '775' to '755' | |
notice: /File[/var/lib/puppet/lib/puppet/provider/file_line]/mode: mode changed '775' to '755' | |
notice: /File[/var/lib/puppet/lib/puppet/provider/rhnchannel]/mode: mode changed '775' to '755' |
This file contains hidden or 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
<!-- org.jboss.modcluster --> | |
<appender name="MODCLUSTER" class="org.jboss.logging.appender.DailyRollingFileAppender"> | |
<errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/> | |
<param name="File" value="${jboss.server.log.dir}/modcluster.log"/> | |
<param name="Append" value="true"/> | |
<!-- Rollover at midnight each day --> | |
<param name="DatePattern" value="'.'yyyy-MM-dd"/> | |
<layout class="org.apache.log4j.PatternLayout"> |