Skip to content

Instantly share code, notes, and snippets.

View raphink's full-sized avatar
🐝
eBPF everything!

Raphaël Pinson raphink

🐝
eBPF everything!
View GitHub Profile
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]
[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':
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
# == Definition: generic-tmpl::package::preference
#
# Wrapper to set preferences for packages
#
define generic-tmpl::package::preference (
$packages = [$name],
$pin = 'release o=Camptocamp',
$priority = '1001',
) {
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'",
]
local all all ident sameuser
local all toto md5
local all titi md5 b a="3" c="o=4,v=6"
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',
@raphink
raphink / output.txt
Created April 13, 2013 23:06
First tests with mspectator
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
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 }
@raphink
raphink / local_tests
Last active February 4, 2016 00:44
Distributed serverspec tests using MCollective instead of SSH.
+-------------------------------------+ +-------------------------------------+
| Client | | Server |
|-------------------------------------| |-------------------------------------|
| | | |
| mco spec | | Serverspec |
| + | | ^ |
| | | | | |
| v | | + |
| MCollective::Application | | RSpec::Core::Runner#run |
| | | | ^ |