Skip to content

Instantly share code, notes, and snippets.

@skpy
skpy / gist:1443122
Created December 7, 2011 15:03
Habari MySQL config.php
<?php
Config::set( 'db_connection', array(
'connection_string'=>"mysql:host=FOOHOST;dbname=FOONAME",
'username'=> 'FOOUSER',
'password'=> 'FOOPASS',
'prefix'=>'',
));
$blog_data = array( 'blog_title' => 'Habari',
'admin_username' => 'admin',
# allow access to the master CA
path /certificate/ca
auth any
method find
allow *
path /certificate/
auth any
method find
allow *
skippy@marrs [~/public_html/system]# git status
# Not currently on any branch.
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: admin/formcontrols/formcontrol_file.php
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)

Keybase proof

I hereby claim:

  • I am skpy on github.
  • I am skippy (https://keybase.io/skippy) on keybase.
  • I have a public key whose fingerprint is F078 3941 F503 BB09 4FF1 397D D8F2 E57B ED0F 2C0A

To claim this, I am signing this object:

[Librarian] Executing puppet module install for evenup/logrotate 1.0.3
Error executing puppet module install:
puppet module install --version 1.0.3 --target-dir /etc/puppetlabs/puppet/environments/chat/.tmp/librarian/cache/source/puppet/forge/3792e516e3ff92a0ef9f5e827f8e76eb/evenup/logrotate/version/1237637816a1ef8e3a33c1191d9dea66 --module_repository http://forge.puppetlabs.com --modulepath /etc/puppetlabs/puppet/environments/chat/.tmp/librarian/cache/source/puppet/forge/3792e516e3ff92a0ef9f5e827f8e76eb/evenup/logrotate/version/1237637816a1ef8e3a33c1191d9dea66 --module_working_dir /etc/puppetlabs/puppet/environments/chat/.tmp/librarian/cache/source/puppet/forge/3792e516e3ff92a0ef9f5e827f8e76eb/evenup/logrotate/version/1237637816a1ef8e3a33c1191d9dea66 --ignore-dependencies evenup/logrotate
Error:
Error: Could not execute operation for 'evenup-logrotate'
The server being queried was /v3/releases?module=evenup-logrotate
The HTTP response we received was '301 Moved Permanently'
Check the author and modul

On the server

gluster1# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.0 (Maipo)

gluster1# cat /etc/yum.repos.d/glusterfs-x86_64.repo
[glusterfs-x86_64]
name=GlusterFS x86_64
baseurl=https://download.gluster.org/pub/gluster/glusterfs/LATEST/RHEL/epel-7/x86_64/
enabled=1

Created a replica 2 volume:

# gluster volume info test1

Volume Name: test1
Type: Replicate
Volume ID: e1d66be2-a9d4-4073-9af9-4df4390dbd4e
Status: Created
Number of Bricks: 1 x 2 = 2
Transport-type: tcp
[2014-08-12 19:19:23.518594] I [glusterfsd.c:1910:main] 0-/usr/sbin/glusterfs: Started running /usr/sbin/glusterfs version 3.4.5 (/usr/sbin/glusterfs --volfile-id=/t0 --volfile-server=gluster1 /mnt)
[2014-08-12 19:19:23.520758] I [socket.c:3480:socket_init] 0-glusterfs: SSL support is NOT enabled
[2014-08-12 19:19:23.520780] I [socket.c:3495:socket_init] 0-glusterfs: using system polling thread
[2014-08-12 19:19:23.529828] I [socket.c:3480:socket_init] 0-t0-client-1: SSL support is NOT enabled
[2014-08-12 19:19:23.529842] I [socket.c:3495:socket_init] 0-t0-client-1: using system polling thread
[2014-08-12 19:19:23.530272] I [socket.c:3480:socket_init] 0-t0-client-0: SSL support is NOT enabled
[2014-08-12 19:19:23.530281] I [socket.c:3495:socket_init] 0-t0-client-0: using system polling thread
[2014-08-12 19:19:23.530298] I [client.c:2155:notify] 0-t0-client-0: parent translators are ready, attempting connect on transport
[2014-08-12 19:19:23.532879] I [client.c:2155:notify] 0-t0-client-1: parent translators a

A simple distributed replicated Gluster volume:

root@p1:DEVELOPMENT:~> gluster volume info g0

Volume Name: g0
Type: Distributed-Replicate
Volume ID: 9b3eb30d-9faf-44fd-8225-afc3f21fbfec
Status: Stopped
Number of Bricks: 2 x 2 = 4
Transport-type: tcp
[2014-09-08 13:49:14.256842] I [socket.c:3576:socket_init] 0-management: using system polling thread
[2014-09-08 13:49:14.257345] I [socket.c:2238:socket_event_handler] 0-transport: disconnecting now
[2014-09-08 16:29:49.972631] I [glusterd-replace-brick.c:98:__glusterd_handle_replace_brick] 0-management: Received replace brick req
[2014-09-08 16:29:49.972666] I [glusterd-replace-brick.c:153:__glusterd_handle_replace_brick] 0-management: Received replace brick start request
[2014-09-08 16:29:49.973735] I [glusterd-utils.c:8850:glusterd_generate_and_set_task_id] 0-management: Generated task-id 0b73a68a-1a06-4a40-888d-854ab423af64 for key replace-brick-id
[2014-09-08 16:29:49.977233] I [glusterd-replace-brick.c:1412:rb_update_srcbrick_port] 0-: adding src-brick port no
[2014-09-08 16:29:49.977343] I [glusterd-replace-brick.c:1466:rb_update_dstbrick_port] 0-: adding dst-brick port no
[2014-09-08 16:29:49.977423] I [glusterd-replace-brick.c:1674:glusterd_op_replace_brick] 0-management: I AM THE DESTINATION HO