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
drush site-install standard --account-pass='MDRHFD' -l default --yes | |
You are about to DROP all tables in your 'drupal' database. Do you want to continue? (y/n): y | |
psql:/tmp/drush_tBsan4:1: ERROR: syntax error at end of input | |
LINE 1: DROP TABLE | |
^ | |
Starting Drupal installation. This takes a few seconds ... [ok] | |
WD php: Exception: To start over, you must empty your existing database.To install to a different database, edit the appropriate [error] | |
settings.php file in the sites folder.To upgrade an existing installation, proceed to the update script.View your existing site. | |
in install_begin_request() (line 301 of /var/www/pref63_risques-majeurs/htdocs/drupal/includes/install.core.inc). | |
Cannot modify header information - headers already sent by (output started at /usr/local/share/drush/includes/output.inc:37) [warning] |
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@raphink ~]# puppet resource yumrepo augeas-1.0.0 enabled=1 gpgcheck=0 baseurl=http://people.redhat.com/~dcleal/augeas-1.0.0-el6 | |
yumrepo { 'augeas-1.0.0': | |
baseurl => 'http://people.redhat.com/~dcleal/augeas-1.0.0-el6', | |
enabled => '1', | |
gpgcheck => '0', | |
} | |
[root@raphink ~]# puppet resource package augeas ensure=installed | |
err: /Package[augeas]/ensure: change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y install augeas' returned 1: Error: Nothing to do | |
package { 'augeas': |
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
module Heredoc = | |
let entry = | |
let tag = del /[A-Za-z]+\n/ "EOF\n" | |
in let var = store Rx.word . Util.eol | |
in let heredoc = Util.del_str "<<" | |
. square tag var tag | |
in [ key Rx.word . Sep.space_equal . heredoc . Util.eol ] | |
test entry get "key = <<EOF |
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
# == Definition: generic-tmpl::package::preference | |
# | |
# Wrapper to set preferences for packages | |
# | |
define generic-tmpl::package::preference ( | |
$packages = [$name], | |
$pin = 'release o=Camptocamp', | |
$priority = '1001', | |
) { |
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
changes => [ | |
"set domain[.='$domain' and type='$type' and item='$item'] '$domain'", | |
"set domain[count(type)=0]/type '$type'", | |
"set domain[count(item)=0]/item '$item'", | |
"set domain[.='$domain' and type='$type' and item='$item']/value '$value'", | |
] |
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
local all all ident sameuser | |
local all toto md5 | |
local all titi md5 b a="3" c="o=4,v=6" |
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
pg_hba { 'Default entry with option': | |
method => 'ident', | |
options => { 'sameuser' => undef }, | |
} | |
pg_hba { 'host all@all from .dev.example.com': | |
method => 'ldap', | |
options => { | |
'ldapserver' => 'auth.example.com', | |
'ldaptls' => '1', |
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
F.FFF.F | |
Failures: | |
1) c2c_wrk | |
Failure/Error: it { should find_nodes(10).or_more } | |
expected to find 10 nodes or more using agent 'rpcutil', but found 5 instead. | |
# ./spec/localhost/wrk_spec.rb:4 | |
2) c2c_wrk |
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
require 'spec_helper' | |
describe 'ssh', :classes => [ 'augeas' ], :facts => { :osfamily => 'Debian' } do | |
it { should be_installed } | |
it { should be_enabled } | |
it { should be_running } | |
end | |
describe 'port 22', :classes => ['ssh'] do | |
it { should be_listening } |
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
+-------------------------------------+ +-------------------------------------+ | |
| Client | | Server | | |
|-------------------------------------| |-------------------------------------| | |
| | | | | |
| mco spec | | Serverspec | | |
| + | | ^ | | |
| | | | | | | |
| v | | + | | |
| MCollective::Application | | RSpec::Core::Runner#run | | |
| | | | ^ | |