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
Checking modules/puppet-allknowingdns/metadata.json | |
Checking modules/puppet-alternatives/metadata.json | |
Checking modules/puppet-amanda/metadata.json | |
Checking modules/puppet-appd_db_agent/metadata.json | |
puppet/archive (>= 1.1.2 <3.0.0) doesn't match 3.1.1 | |
Checking modules/puppet-archive/metadata.json | |
Checking modules/puppet-autofs/metadata.json | |
Checking modules/puppet-bird/metadata.json | |
Checking modules/puppet-boolean/metadata.json | |
Checking modules/puppet-cassandra/metadata.json |
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
#!/usr/bin/env python3 | |
import os | |
from glob import glob | |
from ansible.inventory.manager import InventoryManager | |
from ansible.parsing.dataloader import DataLoader | |
from ansible.vars.manager import VariableManager | |
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
describe MetadataJsonLint do | |
describe '.validate_requirements!' do | |
context 'empty requirements' do | |
let :requirements do | |
[] | |
end | |
it { expect { described_class.validate_requirements!(requirements) }.not_to raise_error } | |
end |
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 -ex | |
if [[ ! -d foreman ]] ; then | |
git clone https://github.com/theforeman/foreman | |
( | |
cd foreman | |
cp config/settings.yaml.example config/settings.yaml | |
cp config/database.yml.example config/database.yml | |
bundle install --without mysql mysql2 postgresql libvirt journald telemetry vmware rackspace ovirt gce | |
npm install |
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
{ | |
"tfm-foreman": "1.18.0", | |
"foreman-bootloaders-redhat": "201801241201", | |
"foreman-installer": "1.18.0", | |
"foreman-proxy": "1.18.0", | |
"foreman-release-scl": "4", | |
"foreman-selinux": "1.18.0", | |
"nodejs-axios": "0.17.1", | |
"nodejs-babel-cli": "6.26.0", | |
"nodejs-babel-core": "6.26.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
# Generate bundler.d file for a plugin | |
# -n<plugin_name> Overrides default of gem_name | |
%foreman_bundlerd_file(n:) \ | |
mkdir -p %{buildroot}%{foreman_bundlerd_dir} \ | |
cat <<GEMFILE > %{buildroot}%{foreman_bundlerd_dir}/%{-n*}%{!?-n:%{gem_name}}.rb \ | |
gem '%{-n*}%{!?-n:%{gem_name}}' \ | |
GEMFILE | |
# Common locations | |
%foreman_bundlerd_plugin %{foreman_bundlerd_dir}/%{gem_name}.rb |
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
#!/usr/bin/env python3 | |
import json | |
import sys | |
import semver | |
def get_requirements(version): | |
if not version: |
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
#!/usr/bin/env python3 | |
import os | |
import re | |
import subprocess | |
import tempfile | |
import click | |
import requests | |
from github import Github |
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 -e | |
DIR=$HOME/dev/foreman-packaging | |
ACTION=$1 | |
if [[ -z $ACTION ]] ; then | |
echo "Usage: $0 ACTION" | |
exit 1 | |
fi | |
shift |
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
require 'time' | |
Facter.add('boottime') do | |
setcode do | |
uptime = Facter.value(:system_uptime) | |
seconds = (uptime['days'] * 24 + uptime['hours']) * 60 + uptime['seconds'] | |
(Time.now - seconds).to_s | |
end | |
end |