Skip to content

Instantly share code, notes, and snippets.

View pmcmaw's full-sized avatar

Paula Muir pmcmaw

  • Belfast
View GitHub Profile
#!/usr/bin/env ruby
require 'json'
file = File.read('metadata.json')
parsed = JSON.parse(file)
if parsed.to_s.include? 'stdlib'
puts 'Run script on ' + parsed['name'] + '.'
end
#!/usr/bin/env ruby
require 'json'
require 'yaml'
require 'pry'
file = File.read('metadata.json')
parsed = JSON.parse(file)
parsed['dependencies'].each do |num|
#!/usr/bin/ruby
require 'yaml' # Built in, no gem required
# d = YAML.load_file('ci-file.yaml') # Load
module_name = "mysql"
# Method within Nodeset Generation to parse ci-job-configs and return OS
ci_config = File.open('modules-unified.yaml') { |yf| YAML.load(yf) }
for project in ci_config
test = project
require 'json'
file = open("#{__dir__}/metadata.json")
json = file.read
output = JSON.parse(json)
metadata_string = output['operatingsystem_support']
unsupported = ['Amazon', 'Archlinux', 'AIX', 'OSX']
operating_system_list = []
for os_info in metadata_string
require 'spec_helper_acceptance'
require 'beaker/i18n_helper'
describe 'mysql localization', unless: fact('operatingsystem') == 'Debian' do
before :all do
hosts.each do |host|
on(host, "sed -i \"96i FastGettext.locale='ja'\" /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb")
change_locale_on(host, "ja_JP")
end
end
require 'puppet'
require 'beaker-rspec'
require 'beaker/puppet_install_helper'
require 'beaker/module_install_helper'
require 'beaker/i18n_helper'
run_puppet_install_helper
install_ca_certs unless ENV['PUPPET_INSTALL_TYPE'] =~ %r{pe}i
install_module_on(hosts)
install_module_dependencies_on(hosts)