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
* users_manage[wheel] action create | |
- would create /home/drewb/.ssh | |
* user[drewb] action create (up to date) | |
* directory[/home/drewb/.ssh] action create (up to date) | |
* template[/home/drewb/.ssh/authorized_keys] action create (up to date) | |
* group[wheel] action create (up to date) | |
Running handlers: | |
Running handlers complete | |
Chef Client finished, 2/9 resources updated in 1.324626609 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
1) gitlab mysql_enable is true should contain File[/etc/gitlab/gitlab.rb] with content =~ /gitlab_rails['postgres'] = false\n/ | |
Failure/Error: should contain_file('/etc/gitlab/gitlab.rb').with_content(/gitlab_rails['postgres'] = false\n/) | |
expected that the catalogue would contain File[/etc/gitlab/gitlab.rb] with content set to /gitlab_rails['postgres'] = false\n/ but it is set to "# MANAGED BY PUPPET\n# Changes may be overwritten\n\n#\n# 1. GitLab app settings\n# ==========================\nexternal_url 'http://gitlab.example.com'\n\n#\n# 2. Auth settings\n# # ==========================\ngitlab_rails['ldap_enabled'] = false\n\n\n\n\n# 3. Advanced settings\n# ==========================\n\n#\n# 4. Extra customization\n# ==========================\n\n#\n# 5. Omnibus customization\n# ==========================\ngitlab_rails['postgres'] = false\ngitlab_rails['db_adapter'] = 'mysql2'\ngitlab_rails['db_encoding'] = 'utf8'\ngitlab_rails['db_host'] = '127.0.0.1'\ngitlab_rails['db_port'] = '3306'\ngitlab_r |
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
def test(val) | |
true if val == 1 | |
'blah' | |
end | |
test(1) | |
=> 'blah' |
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
==> WARNING: Expect Mode enabled, expecting 3 servers [FAILED] | |
==> WARNING: It is highly recommended to set GOMAXPROCS higher than 1 | |
==> Starting Consul agent... | |
==> Starting Consul agent RPC... | |
==> Joining cluster... | |
==> dial tcp 192.168.0.2:8301: connection refused |
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
Migration leads to: | |
no member 'token' in struct(eval):7:in `[]=' | |
(eval):7:in `token=' | |
===== | |
class SerializeServiceProperties < ActiveRecord::Migration | |
def change | |
add_column :services, :properties, :text |
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 { 'percona-xtrabackup': } | |
ensure_packages(['percona-xtrabackup']) | |
---- This should work, assuming order is top down... but I get: | |
Error: Duplicate declaration: Package[percona-xtrabackup] is already declared in file /root/test.pp:1; cannot redeclare at /root/test.pp:3 on node example.com |
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 MyClass | |
serialize :properties, JSON | |
def recipients | |
self.properties[:recipients] | |
end | |
def recipients=(recipients) | |
self.properties[:recipients] = recipients | |
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
upstream gitlab { | |
server unix:/usr/share/gitlab/tmp/sockets/gitlab.socket; | |
} | |
server { | |
listen 443; | |
server_name gitlab.example.com; |
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
Monitor association changes string to array on one side, but other side is still a string. Causes a constantly change attempt: | |
----- | |
monitor_association changed '{"type"=>"MONITOR_RULE_TYPE_SINGLE", "quorum"=>"0", "monitor_templates"=>"/Common/MyMonitor"}' to '{"type"=>"MONITOR_RULE_TYPE_SINGLE", "monitor_templates"=>["/Common/MyMonitor"], "quorum"=>"0"}' |
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
newproperty(:floating_state, boolean: true, parent: Puppet::Parameter::Boolean) do | |
desc 'The floating state of the self IP object' | |
end |