Skip to content

Instantly share code, notes, and snippets.

puppet --modulepath=/var/cache/git/websages/etc/puppet/modules tyr.websage.com.pp
notice: //base/base::autodir/Exec[install-autofs4]/returns: executed successfully
notice: //base/base::autodir/Exec[modprobe-autofs4]: Triggering 'refresh' from 1 dependencies
notice: //base/base::apt/Exec[backports-keyinstall]/returns: executed successfully
notice: //base/base::apt/Exec[wcyd-keyinstall]/returns: executed successfully
notice: //base::postfix_should_only_run_locally/Exec[neuter_postfix]/returns: executed successfully
notice: //base::postfix_should_only_run_locally/Service[postfix]: Triggering 'refresh' from 1 dependencies
notice: //base::packages/Package[libpci2]/ensure: ensure changed 'purged' to 'present'
notice: //base/base::apt/Exec[wcyd-keyimport]/returns: executed successfully
notice: //base/base::apt/File[/etc/apt/sources.list]/source: replacing from source puppet:///base/apt/sources.list with contents {md5}815a418fb2632d7a3d9d856402011875
[root@ram ~]# facter
architecture => i386
domain => stahnkage.com
facterversion => 1.5.7
fqdn => ram.stahnkage.com
hardwareisa => i686
hardwaremodel => i686
hostname => ram
id => root
interfaces => eth0,eth0_1
#init.pp
exec { "/home/stahnma/bin/myscript":
path => ["/usr/bin", "/usr/sbin"],
}
#myscript
#!/bin/bash
echo "hello world"
$VAR1 = [
[
bless( {
'deviceInfo' => bless( {
'summary' => 'IDE 0',
'label' => 'IDE 0'
}, 'Description' ),
'busNumber' => '0',
my $entity_type = Opts::get_option('entity');
my $entity_name = Opts::get_option('vmname');
$entity_type = "VirtualMachine" unless $entity_type;
my $entity_views = Vim::find_entity_views(view_type => $entity_type, 'filter'=> { 'name' => $entity_name});
foreach my $entity_view (@$entity_views) {
my $entity_name = $entity_view->name;
my $foo = $entity_view->config->hardware->device ;
foreach my $test ( @$foo ) {
next unless ($test->isa('VirtualPCNet32')) ;
$VAR1 = bless( {
'vm' => bless( {
'value' => 'vm-213',
'type' => 'VirtualMachine'
}, 'ManagedObjectReference' ),
'overallStatus' => bless( {
'val' => 'green'
}, 'ManagedEntityStatus' ),
'customValue' => [
bless( {
httpserver.rb: mmc....................
proxy.rb: mmc.....................c.....................
router.rb: mmc.......................c...................c..c..
rpc.rb: mm.
soaplet.rb: mc.mmc..............
standaloneServer.rb: mmc..
soap.rb: mcccccccccccc..m.c..m.
streamHandler.rb: mcc...c...........
wsdlDriver.rb: mcc............cc.............c.........................
sync.rb: mc.c.c.....c..........c.
[root@spike minicom]# minicom
minicom: WARNING: configuration file not found, using defaults
Device /dev/modem access failed: No such file or directory.
[root@spike minicom]#
root@sbox17 [/root/ruby-1.8.6-p399]
# make rdoc
......
proxy.rb: mmc.....................c.....................
router.rb: mmc.......................c...................c..c..
rpc.rb: mm.
soaplet.rb: mc.mmc..............
standaloneServer.rb: mmc..
DEBUG util.py:256: udev.x86_64 0:095-14.21.el5
DEBUG util.py:256: unzip.x86_64 0:5.52-3.el5
DEBUG util.py:256: util-linux.x86_64 0:2.13-0.52.el5_4.1
DEBUG util.py:256: which.x86_64 0:2.16-7
DEBUG util.py:256: zlib.x86_64 0:1.2.3-3
DEBUG util.py:319: Child returncode was: 0
DEBUG backend.py:587: umount -n /var/lib/mock/epel-5-x86_64/root/proc
DEBUG util.py:280: Executing command: umount -n /var/lib/mock/epel-5-x86_64/root/proc
DEBUG util.py:319: Child returncode was: 0
DEBUG backend.py:587: umount -n /var/lib/mock/epel-5-x86_64/root/sys