References:
- https://packaging.ubuntu.com/html/
- https://packaging.ubuntu.com/html/introduction-to-ubuntu-development.html
- https://packaging.ubuntu.com/html/getting-set-up.html
- Install build tools:
# For a high level over see video at https://www.ansible.com/blog/how-to-extend-ansible-through-plugins | |
# Standard base includes and define this as a metaclass of type | |
from __future__ import (absolute_import, division, print_function) | |
__metaclass__ = type | |
# Important contants | |
from ansible import constants as C | |
# Common error handlers | |
from ansible.errors import AnsibleError |
#!/usr/bin/python | |
# Copyright (c) 2018 Julio Lajara | |
# Copyright (c) 2017 Ansible Project | |
# GNU General Public License v2.0 (see COPYING or https://www.gnu.org/licenses/old-licenses/gpl-2.0.html) | |
# Last Updated: 02/05/2018 Ansible Version: 2.4 | |
# | |
# All modules must have the following sections defined in this order: | |
# | |
# 1. Copyright (When adding a copyright line after completing a significant feature or rewrite, add the newer line above |
# Last updated: 08/24/2916 | |
# | |
# Total instructions available: 18 | |
# | |
# https://docs.docker.com/engine/reference/builder/ | |
# | |
# You can use a .dockerignore file in the same context directory as | |
# your Dockerfile to ignore files in the context before sending them | |
# to the Docker daemon for building to speed up building. |
# https://docs.docker.com/compose/yml/ | |
# Each service defined in docker-compose.yml must specify exactly one of | |
# image or build. Other keys are optional, and are analogous to their | |
# docker run command-line counterparts. | |
# | |
# As with docker run, options specified in the Dockerfile (e.g., CMD, | |
# EXPOSE, VOLUME, ENV) are respected by default - you don't need to | |
# specify them again in docker-compose.yml. | |
# | |
service_name: |
{ | |
// WARNING: This file needs to be pure JSON, be sure to remove all comments | |
// | |
//==================================== | |
// The "author" is one person. A "person" is an object with a "name" field and optionally | |
// "url" and "email" (both email and url are optional). | |
// | |
// This field can also be shortened to a single string that npm will parse. | |
// | |
//"author": "FirstName LastName <[email protected]> (http://www.company.com)", |
#!/usr/bin/env gem build | |
# -*- coding: utf-8 -*- | |
module Gem::Specification::SpecificationHelpers | |
def self.find_executables(executable_dir = 'bin', options = {}) | |
raise ArgumentError, "options must be a Hash" unless options.kind_of?(Hash) | |
exclude_executables = options['exclude_executables'] || [] | |
executable_files = [] |
""" | |
Python setup.py setuptools template for Python 2.6 or greater. | |
Python Packaging Guide: https://packaging.python.org/en/latest/index.html | |
""" | |
# pylint: disable=line-too-long | |
from __future__ import print_function | |
import os |
powershell -command "& {set-executionpolicy -force unrestricted; $wget = New-Object System.Net.WebClient; New-Item -ItemType directory -Path 'c:/post_install'; $wget.DownloadFile('https://gist.githubusercontent.com/ju2wheels/6c231004f09ef232ea73/raw/4bd93da9f3db3700721583a9bbf015b452d8c941/winrm_quickconfig_test.ps1','c:/post_install/post_install.ps1'); c:\post_install\post_install.ps1}" |
require 'softlayer_api' | |
sl_client = SoftLayer::Client.new(:api_key => ENV["SL_API_KEY"], :username => ENV["SL_API_USERNAME"], :timeout => 240) | |
pkgs = [SoftLayer::ProductPackage.bare_metal_instance_package(sl_client),SoftLayer::ProductPackage.virtual_server_package(sl_client),SoftLayer::ProductPackage.additional_products_package(sl_client)].concat(SoftLayer::ProductPackage.bare_metal_server_packages(sl_client)) | |
File.open("/tmp/sl_product_package_catagories.txt", "w") do |fout| | |
pkgs.each do |pkg| | |
fout.write "================#{pkg.name}===================\n" | |
pkg.categories.each do |item_cat| | |
fout.write "#{item_cat.categoryCode}\n" |