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
| This is an experimental installer for WebGUI8 that attempts to use the | |
| system package manager rather than the WRE. | |
| It is currently incomplete -- it doesn't set up WebGUI or MySQL to run | |
| at boot time, and it doesn't set up cron, and a few other things. | |
| It uses a Curses interface, asking the user about install options | |
| (paths and passwords and such), and getting confirmation before running | |
| commands. |
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 { "authorized-sshkey::root": | |
| authorized_keys => { | |
| [ | |
| { | |
| method => "ssh-rsa", | |
| key => "asdf", | |
| user => "jon@red5", | |
| }, | |
| # { | |
| # method => "ssh-dsa", |
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
| package App::SmarterMail::Parser::Thread; | |
| use 5.014; | |
| use Moose; | |
| has 'thread_id' => ( | |
| is => 'rw', | |
| isa => 'Int', | |
| ); |
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
| #!/usr/bin/perl | |
| use 5.014; | |
| use Tie::IxHash; | |
| use Data::Dumper; | |
| my $smartermail_directory = './Prime/'; | |
| my $search_string = '[email protected]'; | |
| # storage vars |
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
| #!/usr/bin/perl | |
| package Test; | |
| use Moose; | |
| sub get_template { | |
| my $template =<<'END_TEMPLATE'; | |
| [%- USE assert -%] | |
| <kayako_staffapi> | |
| <create staffapiid="[%- staffapiid -%]"> |
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
| #!/usr/bin/perl | |
| package Test; | |
| use Moose; | |
| sub get_template { | |
| my $template =<<'END_TEMPLATE'; | |
| [%- USE assert -%] | |
| <kayako_staffapi> | |
| <create staffapiid="[%- staffapiid -%]"> |
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
| Facter.add("configserver_firewall") do | |
| has_weight 100 | |
| setcode do | |
| if File.exist? "/etc/init.d/csf" | |
| "true" | |
| else | |
| "false" | |
| end | |
| end | |
| end |
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@sidious ~]# puppet agent --test | |
| info: Caching catalog for sidious | |
| info: Applying configuration version '1337705421' | |
| notice: /Stage[main]/Cpanel/Exec[disable_selinux]/returns: executed successfully | |
| notice: /Stage[main]/Cpanel/Exec[download_cpanel]/returns: executed successfully | |
| err: /Stage[main]/Cpanel/Exec[install_cpanel]/returns: change from notrun to 0 failed: sh /root/install_cpanel.sh returned 2 instead of one of [0] at /etc/puppet/modules/cpanel/manifests/init.pp:52 | |
| notice: Finished catalog run in 1.26 seconds | |
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@puppet:/etc/puppet/modules# ssh sidious puppet agent --test | |
| err: Could not retrieve catalog from remote server: Error 400 on SERVER: Syntax error at '{'; expected '}' at /etc/puppet/modules/cpanel/manifests/init.pp:23 on node sidious | |
| warning: Not using cache on failed catalog | |
| err: Could not retrieve catalog; skipping run | |
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 rabbitmq { | |
| apt::source { "rabbitmq": | |
| location => "http://www.rabbitmq.com/debian/", | |
| release => "testing", | |
| repos => "main", | |
| key => "056E8E56", | |
| key_source => "http://www.rabbitmq.com/rabbitmq-signing-key-public.asc", | |
| pin => "-10", | |
| include_src => false | |
| } |