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
#!/bin/sh | |
set -e | |
BRANCHES='branches/rudder/2.10 branches/rudder/2.11 branches/rudder/3.0 master' | |
BRANCH='' | |
for i in $BRANCHES; do |
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
displayName=Test Clients& | |
description=& | |
isDynamic=true& | |
isEnabled=true& | |
query={ "where": [{"objectType": "node", "attribute": "nodeHostname", "value": | |
"servername.*company.net", "comparator": "regex"}, {"attribute": "nodeHostname", "value": "lt serverbla.*company.net", "comparator": "regex", "objectType": "node"}], "composition": "Or", | |
"select": "node"}& | |
nodeGroupCategory=GroupRoot |
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
Create the Directive | |
* file directive2: | |
displayName=Create KISS example directive2& | |
techniqueVersion=3.0& | |
techniqueName=motdConfiguration | |
* curl command: |
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
displayName=Create KISS example directive& | |
parameters={"section": {"sections": [{"section": {"name": "MOTD Configuration", "vars": [{"var": {"name": "MOTD", "value": "This is a simple MOTD."}}, {"var": {"name": "MOTD_EMPTY", "value": "true"}}, {"var": {"name": "MOTD_LOCATION", "value": "after"}}]}}], "name": "sections"}}& | |
techniqueVersion=3.0& | |
techniqueName=motdConfiguration |
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
displayName=Create KISS example directive | |
parameters={"section": {"sections": [{"section": {"name": "MOTD Configuration", "vars": [{"var": {"name": "MOTD", "value": "This is a simple MOTD."}}, {"var": {"name": "MOTD_EMPTY", "value": "true"}}, {"var": {"name": "MOTD_LOCATION", "value": "after"}}]}}], "name": "sections"}} |
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
-- add the columns needed to store NodeConfigId: | |
-- - one in reportExectution, "nodeConfigId" | |
ALTER TABLE ReportsExecution ADD COLUMN nodeConfigId text; | |
-- - one in ExpectedReportsNode, "nodeConfigIds" (with 's') | |
ALTER TABLE expectedReportsNodes ADD COLUMN nodeConfigIds text[]; | |
-- - the table for node config ids | |
CREATE TABLE nodes_info ( | |
node_id text PRIMARY KEY CHECK (node_id <> '') |
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
CREATE TABLE ReportsExecution ( | |
nodeId text NOT NULL | |
, date timestamp with time zone NOT NULL | |
, complete boolean NOT NULL | |
, PRIMARY KEY(nodeId, date) | |
); | |
CREATE INDEX reportsexecution_date_idx ON ReportsExecution (date); | |
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..10).each { |i| | |
n = i.to_s() | |
config.vm.define ("node"+n+"_"+os[:name]).to_sym do |node_config| | |
node_config.vm.provision :shell, :path => "provision/"+os[:node] | |
node_config.vm.network :private_network, ip: "192.168.42.1"+n | |
node_config.vm.box = os[:box] | |
node_config.vm.box_url = os[:url] | |
node_config.vm.provider :virtualbox | |
node_config.vm.hostname = "node"+n | |
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
os = [ debian6, debian7, sles11, ubuntu12_04, centos6, centos5] | |
os.each { |os| | |
# Declare server boxes if server provisionning script is declared | |
if os[:server] | |
config.vm.define ("server_"+os[:name]).to_sym do |server_config| | |
server_config.vm.box = os[:box] | |
server_config.vm.box_url = os[:url] | |
server_config.vm.provider :virtualbox do |vb| | |
vb.customize ["modifyvm", :id, "--memory", "1536"] |
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
% vagrant status | |
Current machine states: | |
node1_debian6 not created (virtualbox) | |
node2_debian6 poweroff (virtualbox) | |
node3_debian6 not created (virtualbox) | |
node4_debian6 not created (virtualbox) | |
node5_debian6 not created (virtualbox) | |
node6_debian6 not created (virtualbox) | |
node7_debian6 not created (virtualbox) |