Skip to content

Instantly share code, notes, and snippets.

View zipkid's full-sized avatar
💭
Eating 🍪

Stefan Goethals zipkid

💭
Eating 🍪
View GitHub Profile
- id: <UUID>
alias: Power Alert
description: ""
trigger:
- platform: numeric_state
entity_id: sensor.dsmr_reader_power_consumed
for:
hours: 0
minutes: 5
seconds: 0
@zipkid
zipkid / gist:8577612
Created January 23, 2014 12:14
Gitlab with rvm problem when pushing
git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v --tags origin master:master
Pushing to http://gitlab01.vm.super-visions.com/root/puppetlabs-mysql.git
POST git-receive-pack (424 bytes)
remote: /usr/local/rvm/gems/ruby-1.9.3-p448@global/gems/bundler-1.5.2/lib/bundler/dsl.rb:33:in `eval_gemfile': Gemfile syntax error: (Bundler::GemfileError)
remote: /home/git/gitlab/Gemfile:20: syntax error, unexpected ':', expecting $end
remote: gem "mysql2", group: :mysql
remote: ^
remote: from /usr/local/rvm/gems/ruby-1.9.3-p448@global/gems/bundler-1.5.2/lib/bundler/dsl.rb:9:in `evaluate'
remote: from /usr/local/rvm/gems/ruby-1.9.3-p448@global/gems/bundler-1.5.2/lib/bundler/definition.rb:26:in `build'
remote: from /usr/local/rvm/gems/ruby-1.9.3-p448@global/gems/bundler-1.5.2/lib/bundler.rb:152:in `definition'
-bash-4.1$ puppet apply -e 'notify{"$::architecture":}'
Notice: Compiled catalog for gitlab01.vm.super-visions.com in environment production in 0.02 seconds
Notice: x86_64
Notice: /Stage[main]/Main/Notify[x86_64]/message: defined 'message' as 'x86_64'
Notice: Finished catalog run in 0.03 seconds
$users = {
'gitlab_user@localhost' => {
ensure => 'present',
password_hash => mysql_password('changeme'),
},
}
$grants = {
'gitlab_user@localhost/gitlab_db.*' => {
ensure => 'present',
@zipkid
zipkid / gist:8559295
Created January 22, 2014 14:08
puppet-gitlab install issue....
Debug: Exec[install gitlab](provider=posix): Executing check 'bundle check'
Debug: Executing 'bundle check'
Debug: /Stage[main]/Gitlab::Install/Exec[install gitlab]/unless: Gemfile syntax error:
Debug: /Stage[main]/Gitlab::Install/Exec[install gitlab]/unless: /home/git/gitlab/Gemfile:20: syntax error, unexpected ':', expecting $end
Debug: /Stage[main]/Gitlab::Install/Exec[install gitlab]/unless: gem "mysql2", group: :mysql
Debug: /Stage[main]/Gitlab::Install/Exec[install gitlab]/unless: ^
Debug: Exec[install gitlab](provider=posix): Executing 'bundle install --without development aws test postgres --deployment'
Debug: Executing 'bundle install --without development aws test postgres --deployment'
Notice: /Stage[main]/Gitlab::Install/Exec[install gitlab]/returns: Gemfile syntax error:
Notice: /Stage[main]/Gitlab::Install/Exec[install gitlab]/returns: /home/git/gitlab/Gemfile:20: syntax error, unexpected ':', expecting $end
@zipkid
zipkid / Hiera
Last active December 28, 2015 23:29
class package
packages:
fuse:
ensure: present
git:
ensure: present
@zipkid
zipkid / gist:6866813
Created October 7, 2013 12:10
Multiline strings in Puppet
line => "${headline}
${web_service['name']}
${web_service['port']}"
# from http://puppetlabs.com/blog/facter-part-1-facter-101
Facter.add("cache_folder_created") do
setcode do
File.exists?('/data/cache')
end
end - See more at: http://puppetlabs.com/blog/facter-part-1-facter-101#sthash.2wNn33Mx.dpuf
# a config.ru, for use with every rack-compatible webserver.
# SSL needs to be handled outside this, though.
# if puppet is not in your RUBYLIB:
# $LOAD_PATH.unshift('/opt/puppet/lib')
$0 = "master"
# if you want debugging:
# ARGV << "--debug"
@zipkid
zipkid / Vagrantfile
Last active December 22, 2015 16:49
Starting a Vagrant VM for Percona-toolkit testing
# -*- mode: ruby -*-
# vi: set ft=ruby :
hostname = 'pt01'
fqdn = 'pt01.vm.some.where'
ip_addr = '10.10.10.101'
Vagrant.configure("2") do |config|
# All Vagrant configuration is done here. The most common configuration