- Added ability to populate all
target
properties in thepuppetdb
plugin'starget_mapping
Previously thetarget_mapping
field only supported populating target'suri
,name
andconfig
values. Additional fields are now able to be populated on a target, a complete list is below:alias
config
facts
features
name
uri
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
{ | |
"target": { | |
"private-key-content": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDULQdQbyTyqqyL73RaKPketgqtkiIVupUSI2hQ08CEXOEmWCUZXQfyE3FWXPKQqu+CskxTufSmMVEnQxXVt925H76Q7Dta6VSxUTLrDf0U+LpCpqaM8uWhVf+n6j4W0nJHCSkZkZ9s7oW4ITrRjaaCa+UfiCP7p1JCY2BKeAI7qD69pn1hrLZh10mlRqHYBNfQRvUcqQm61OLzKA3ZyQoHpAlL0DdlHLUm0WELqfgKdAIq2iQ+cSgix40gK6WED31CY6Rh03TgdKQqJlffW2XaHGVDSHRmCEovRxuTZqN4s33aF5OidkFfPahdWEGgEVhL3PU30VIC2Rw7u6d1wko5kF56nwCucXzfj0J4QjqHVkXLV+TpjMSFfqxm9KXXAZ9VIAt9CFvkGAIe+RY4S8HGViRRa7vDIyEEkT49VhkriRc4MyVGkiOloTJWai6luwYq+CaxZhH6PkOd8++8biSf2pPnuuSdvWYzg47cejqt9re8SGNAUCi550BzAKN2n+iJpb7X4TLoinrgeAfVB+tcVV1+0Hq90HCg9NGAKbZpXOrG7uFb3I+gSkJD3NS86hgUfdSWDucPsP61wNCDK4DYj6HTbgASroHiHY8PoRF9KvnLHLOVIQ1thvEDYcorvGCy+h2grgRenWMlS57qKDyBqOv2lQoxQ== jonathan.newman@puppet.com", | |
"user": "centos", | |
"hostname": "192.168.0.12", | |
"task": { | |
"name": "bootstrap::linux", | |
"metadata": { | |
"description": "Bootstrap a node with puppet-agent for Linux", | |
"parameters": { |
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
Vagrant.configure("2") do |config| | |
config.vm.box = "mrh1997/vanilla-win7-32bit" | |
config.vm.synced_folder "./files", "C:\\vagrant" | |
# config.vm.box = "datacastle/windows7" | |
config.vm.provider "virtualbox" do |vb| | |
vb.gui = true | |
vb.customize ['modifyvm', :id, '--usb', 'on'] | |
vb.customize ["modifyvm", :id, "--usbehci", "on"] | |
vb.customize ["usbfilter", "add", "0", |
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
(defn get-plan-job-status | |
"Returns a list of states for a plan job" | |
[db plan-job-id] | |
{:pre [(some? db)]} | |
(sql/with-db-transaction [conn db] | |
(let [query {:select [:jobs.id | |
[(h/call :json_agg | |
(h/call :json_build_object | |
"state" :job_statuses.state | |
"enter_time" :job_statuses.enter_time |
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
# ----------------------------- | |
# PostgreSQL configuration file | |
# ----------------------------- | |
# | |
# This file consists of lines of the form: | |
# | |
# name = value | |
# | |
# (The "=" is optional.) Whitespace may be used. Comments are introduced with | |
# "#" anywhere on a line. The complete list of parameter names and allowed |
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
[root@hrcw2lsckl5iy9l ~]# bolt --help | |
/opt/puppetlabs/puppet/lib/ruby/2.4.0/rubygems/dependency.rb:308:in `to_specs': Could not find 'ffi' (>= 1.0.1) among 53 total gem(s) (Gem::MissingSpecError) | |
Checked in 'GEM_PATH=/root/.gem/ruby/2.4.0:/opt/puppetlabs/puppet/lib/ruby/gems/2.4.0', execute `gem env` for more information | |
from /opt/puppetlabs/puppet/lib/ruby/2.4.0/rubygems/specification.rb:1444:in `block in activate_dependencies' | |
from /opt/puppetlabs/puppet/lib/ruby/2.4.0/rubygems/specification.rb:1433:in `each' | |
from /opt/puppetlabs/puppet/lib/ruby/2.4.0/rubygems/specification.rb:1433:in `activate_dependencies' | |
from /opt/puppetlabs/puppet/lib/ruby/2.4.0/rubygems/specification.rb:1415:in `activate' | |
from /opt/puppetlabs/puppet/lib/ruby/2.4.0/rubygems/specification.rb:1447:in `block in activate_dependencies' | |
from /opt/puppetlabs/puppet/lib/ruby/2.4.0/rubygems/specification.rb:1433:in `each' | |
from /opt/puppetlabs/puppet/lib/ruby/2.4.0/rubygems/specification.rb:1433:in `activate_dependencies' |
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
plan test::my_unix_plan($nodes) { | |
$array = $nodes.split(',') | |
$result = run_task(test::hostname_nix, $array, | |
'success_nodes' => [$array[0]], | |
'_catch_errors' =>true) | |
$retry = run_task(test::hostname_nix, $result.error_set.names, | |
'success_nodes' => $result.error_set.names) | |
notice("Result is $result and retry result is $retry") | |
{ "result" => $result, | |
"retry" => $retry } |
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 | |
sudo service pe-console-services stop | |
sudo service pe-orchestration-services stop | |
sudo service pe-postgresql stop | |
sudo service pe-nginx stop | |
sudo service pe-puppetdb stop | |
sudo service pe-puppetserver stop |
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
(ns puppetlabs.orchestrator.integration.jarjar.service-status | |
(:require [clojure.test :refer :all] | |
[clojure.pprint :refer :all] | |
[puppetlabs.enterprise.aio.test-utils :as jar-jar] | |
[puppetlabs.kitchensink.core :refer [mapvals]] | |
[puppetlabs.orchestrator.testutils :refer [with-silenced-logging]] | |
[puppetlabs.orchestrator.testutils.jarjar :refer [jar-jar-orch-client with-pe-fixture *jar-jar* *jar-jar-token*] :as testutils])) | |
(use-fixtures :once with-silenced-logging with-pe-fixture) |
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
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN | |
tcp 0 0 127.0.0.1:4381 0.0.0.0:* LISTEN | |
tcp 0 0 0.0.0.0:56453 0.0.0.0:* LISTEN | |
tcp 0 0 0.0.0.0:8200 0.0.0.0:* LISTEN | |
tcp 0 0 0.0.0.0:57621 0.0.0.0:* LISTEN | |
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN | |
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN | |
tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN | |
tcp6 0 0 :::61613 :::* LISTEN | |
tcp6 0 0 127.0.0.1:4430 :::* LISTEN |
NewerOlder