This file contains 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
if versioncmp($::puppetversion, '4.0') < 0 { | |
include ::puppet_agent | |
} else { | |
include ::puppet | |
} |
This file contains 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
Notice: /Stage[main]/Puppet::Server::Config/File[/etc/puppetlabs/code/environments/common]/ensure: created | |
Notice: /Stage[main]/Puppet::Agent::Service::Daemon/Service[puppet]/ensure: ensure changed 'stopped' to 'running' | |
Info: /Stage[main]/Puppet::Agent::Service::Daemon/Service[puppet]: Unscheduling refresh on Service[puppet] | |
Info: Class[Puppet::Server::Config]: Scheduling refresh of Class[Puppet::Server::Service] | |
Info: Class[Puppet::Server::Service]: Scheduling refresh of Service[puppetserver] | |
Notice: /Stage[main]/Puppet::Server::Service/Service[puppetserver]: Triggered 'refresh' from 1 events |
This file contains 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
web-router-service: { | |
<%- if scope.function_versioncmp([@puppetversion, '4.0']) >= 0 -%> | |
# These two should not be modified because the Puppet 4.x agent expects them to | |
# be mounted at these specific paths | |
"puppetlabs.services.ca.certificate-authority-service/certificate-authority-service": "/puppet-ca" | |
"puppetlabs.services.master.master-service/master-service": "/puppet" | |
"puppetlabs.services.legacy-routes.legacy-routes-service/legacy-routes-service": "" | |
<%- else -%> | |
# These two should not be modified because the Puppet 3.x agent expects them to | |
# be mounted at "/" |
This file contains 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
url = '/users/%s/favorites' % client.get('/me').id | |
while url: | |
response = client.get(url, order='favorited_at', limit=PAGE_SIZE, linked_partitioning=True) | |
url = response.next_href if 'next_href' in response.keys() else None | |
db.tracks.insert_many([track.obj for track in response.collection]) |
This file contains 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
/* | |
* Table enumerating all implemented cipher suites | |
* Part of public API. | |
* | |
* This Source Code Form is subject to the terms of the Mozilla Public | |
* License, v. 2.0. If a copy of the MPL was not distributed with this | |
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | |
#include "ssl.h" | |
#include "sslproto.h" |
This file contains 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
.Scanning /Users/weeks/Development/smart-proxy/modules/puppet_proxy/class_scanner_eparser.rb | |
An error occurred while Style/StabbyLambdaParentheses cop was inspecting /Users/weeks/Development/smart-proxy/modules/puppet_proxy/class_scanner_eparser.rb. | |
undefined method `children' for :do_find:Symbol | |
/Users/weeks/.rvm/gems/ruby-2.2.3/gems/rubocop-0.35.1/lib/rubocop/cop/style/stabby_lambda_parentheses.rb:98:in `args?' | |
/Users/weeks/.rvm/gems/ruby-2.2.3/gems/rubocop-0.35.1/lib/rubocop/cop/style/stabby_lambda_parentheses.rb:83:in `lambda_with_args?' | |
/Users/weeks/.rvm/gems/ruby-2.2.3/gems/rubocop-0.35.1/lib/rubocop/cop/style/stabby_lambda_parentheses.rb:27:in `on_send' | |
/Users/weeks/.rvm/gems/ruby-2.2.3/gems/rubocop-0.35.1/lib/rubocop/cop/commissioner.rb:37:in `block (2 levels) in on_send' | |
/Users/weeks/.rvm/gems/ruby-2.2.3/gems/rubocop-0.35.1/lib/rubocop/cop/commissioner.rb:87:in `with_cop_error_handling' | |
/Users/weeks/.rvm/gems/ruby-2.2.3/gems/rubocop-0.35.1/lib/rubocop/cop/commissioner.rb:36:in `block in on_send' | |
/Use |
This file contains 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
#!/bin/bash | |
# | |
# generate patches with the following command (zsh): | |
# git checkout 1.10-square | |
# git format-patch upstream/1.10-stable ^test | |
# then copy .patch files to this folder | |
# set FOREMAN_VERSION the exact version the patches were based from | |
# | |
FOREMAN_VERSION='1.10.0-0.1.RC3' |
This file contains 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
-- Find hosts where name doesn't match certname | |
SELECT name,certname | |
FROM hosts | |
WHERE name != certname; | |
-- Find duplicate nics | |
SELECT count(*), host_id, identifier FROM nics GROUP BY host_id, identifier HAVING COUNT(*) > 1; | |
-- Cleanup duplicate nics | |
DELETE FROM nics |
This file contains 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
foreman=# SELECT count(*), host_id, identifier FROM nics GROUP BY host_id, identifier HAVING COUNT(*) > 1; | |
count | host_id | identifier | |
-------+---------+------------ | |
2 | 776 | eth0 | |
2 | 683 | ovs_system | |
2 | 670 | ovs_system | |
2 | 691 | ovs_system | |
2 | 690 | br_tun | |
2 | 690 | ovs_system | |
5 | 593 | br_tun |
This file contains 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
BEGIN; | |
DELETE | |
FROM nics | |
WHERE identifier LIKE 'tap%' | |
OR identifier LIKE 'qv%' | |
OR identifier LIKE 'qbr%'; | |
DELETE | |
FROM fact_values | |
WHERE fact_name_id IN (SELECT id |