Skip to content

Commit

Permalink
Merge pull request #10 from RedHatSatellite/update-120
Browse files Browse the repository at this point in the history
Update to 1.2.0
  • Loading branch information
evgeni authored Sep 7, 2020
2 parents c4b7ba9 + a1627f8 commit f133c13
Show file tree
Hide file tree
Showing 202 changed files with 16,242 additions and 22,168 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ on:

jobs:
docs:

runs-on: ubuntu-latest

if: github.repository == 'theforeman/foreman-ansible-modules'
steps:
- uses: actions/checkout@v2
- name: configure git
Expand All @@ -30,9 +29,9 @@ jobs:
git checkout gh-pages
rm -rf $(basename ${GITHUB_REF})
mv docs/_build/html $(basename ${GITHUB_REF})
git show origin/master:docs/_gh_include/header.inc > index.html
dirname */index.html | sort --version-sort | xargs -I@@ -n1 echo '<div class="col-md-4 center"><a href="@@/" class="btn-doc btn"><i class="fa fa-newspaper-o"></i><p>@@</p></a></div>' >> index.html
git show origin/master:docs/_gh_include/footer.inc >> index.html
git show origin/develop:docs/_gh_include/header.inc > index.html
(echo develop; dirname v*/index.html | sort --version-sort --reverse) | xargs -I@@ -n1 echo '<div class="col-md-4 center"><a href="@@/" class="btn-doc btn"><i class="fa fa-newspaper-o"></i><p>@@</p></a></div>' >> index.html
git show origin/develop:docs/_gh_include/footer.inc >> index.html
git add $(basename ${GITHUB_REF}) index.html
git commit -m "update docs for $(basename ${GITHUB_REF})" || true
- name: push docs
Expand Down
54 changes: 44 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,32 +13,52 @@ jobs:
strategy:
fail-fast: false
matrix:
python: ["2.7", "3.5", "3.6", "3.7"]
python:
- "2.7"
- "3.5"
- "3.6"
- "3.7"
- "3.8"
ansible:
- stable-2.8
- stable-2.9
- stable-2.10
- devel
exclude:
- python: "2.7"
ansible: "stable-2.8"
- python: "2.7"
ansible: "stable-2.9"
- python: "2.7"
ansible: "stable-2.10"
- python: "3.5"
ansible: "stable-2.8"
- python: "3.5"
ansible: "stable-2.9"
- python: "3.5"
ansible: "stable-2.10"
- python: "3.6"
ansible: "stable-2.8"
- python: "3.6"
ansible: "stable-2.9"
- python: "3.6"
ansible: "stable-2.10"
- python: "3.8"
ansible: "stable-2.8"
- python: "3.8"
ansible: "stable-2.9"
- python: "3.8"
ansible: "stable-2.10"
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install libyaml-dev for PyYAML
run: sudo apt-get install -y libyaml-dev
- name: Install Ansible
run: pip install git+https://github.com/ansible/ansible.git@${{ matrix.ansible }}#egg=ansible
run: pip install git+https://github.com/ansible/ansible.git@${{ matrix.ansible }}
- name: Set Environment to use mazer
run: |
echo "::set-env name=COLLECTION_COMMAND::mazer"
Expand All @@ -49,14 +69,18 @@ jobs:
run: make test-setup
- name: fake redhat-uep.pem for redhat_manifest module
run: sudo mkdir -p /etc/rhsm/ca/ && sudo touch /etc/rhsm/ca/redhat-uep.pem
- name: Install Ansible devel specific dependencies
- name: Install required collections for ansible-base (2.10+)
run: ansible-galaxy collection install community.general
if: matrix.ansible == 'devel'
- name: Run basic tests
run: make test-crud test-other
- name: Run Ansible devel specific tests
run: make SANITY_OPTS="--local" PYTHON_VERSION=${{ matrix.python }} sanity dist-test
if: matrix.ansible == 'devel'
if: matrix.ansible == 'devel' || matrix.ansible == 'stable-2.10'
- name: Run crud tests
run: make test-crud
- name: Run other tests
run: make test-other
- name: Run dist tests
run: make dist-test
- name: Run sanity tests
run: make SANITY_OPTS="--local" sanity
if: (matrix.ansible == 'devel' || matrix.ansible == 'stable-2.10') && matrix.python != '3.8'

checkmode:
runs-on: ubuntu-latest
Expand All @@ -83,8 +107,13 @@ jobs:
python-version: "3.7"
- name: Install dependencies
run: make doc-setup
- name: Run tests
- name: Build docs
run: make doc
- name: Upload docs artifact
uses: actions/upload-artifact@v2
with:
name: docs-html
path: docs/_build/html/

lint:
runs-on: ubuntu-latest
Expand All @@ -98,3 +127,8 @@ jobs:
run: pip install flake8 yamllint
- name: Run lint
run: make lint
- name: Upload collection artifact
uses: actions/upload-artifact@v2
with:
name: collection
path: theforeman-foreman-*.tar.gz
7 changes: 3 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,17 @@ on:

jobs:
release:

runs-on: ubuntu-latest

if: github.repository == 'theforeman/foreman-ansible-modules'
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.7"
python-version: "3.8"
- name: Install Ansible
run: pip install --upgrade ansible
- name: Build Ansible Collection
run: make dist
- name: Deploy Ansible Collection
run: ansible-galaxy collection publish --api-key ${{ secrets.GALAXY_API_KEY }} theforeman-foreman-*.tar.gz
run: make publish GALAXY_API_KEY=${{ secrets.GALAXY_API_KEY }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ __pycache__
.mypy_cache/
venv/
/build/
docs/modules/
docs/plugins/
docs/_build/
3 changes: 3 additions & 0 deletions .mailmap
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ Matthias Dellweg <[email protected]> <[email protected]>
Matthias Dellweg <[email protected]> <[email protected]>
Mark Hlawatschek <[email protected]> <[email protected]>
Paul Gration <[email protected]>
Peter Ondrejka <[email protected]> <[email protected]>
Richard Stempfl <[email protected]> <[email protected]>
Richard Stempfl <[email protected]> <[email protected]>
135 changes: 135 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
================================
redhat.satellite Release Notes
================================

.. contents:: Topics

This changelog describes changes after version 0.8.1.

v1.2.0
======

Minor Changes
-------------

- compute_resource - added ``caching_enabled`` option for VMware compute resources
- domain, host, hostgroup, operatingsystem, subnet - manage parameters in a single API call (https://bugzilla.redhat.com/show_bug.cgi?id=1855008)
- host - add ``compute_attributes`` parameter to module (https://bugzilla.redhat.com/show_bug.cgi?id=1871815)
- provisioning_template - update list of possible template kinds (https://bugzilla.redhat.com/show_bug.cgi?id=1871978)
- repository - update supported parameters (https://github.com/theforeman/foreman-ansible-modules/issues/935)

Bugfixes
--------

- image - fix quoting of search values (https://github.com/theforeman/foreman-ansible-modules/issues/927)

v1.1.0
======

Minor Changes
-------------

- activation_key - add ``description`` parameter (https://github.com/theforeman/foreman-ansible-modules/issues/915)
- callback plugin - add reporter to report logs sent to Foreman (https://github.com/theforeman/foreman-ansible-modules/issues/836)
- document return values of modules (https://github.com/theforeman/foreman-ansible-modules/pull/901)
- inventory plugin - allow to control batch size when pulling hosts from Foreman (https://github.com/theforeman/foreman-ansible-modules/pull/865)
- subnet - Require mask/cidr only on ipv4 (https://github.com/theforeman/foreman-ansible-modules/issues/878)

Bugfixes
--------

- inventory plugin - fix want_params handling (https://github.com/theforeman/foreman-ansible-modules/issues/847)

New Modules
-----------

- redhat.satellite.http_proxy - Manage HTTP Proxies

v1.0.1
======

Release Summary
---------------

Documentation fixes to reflect the correct module names.


v1.0.0
======

Release Summary
---------------

This is the first stable release of the ``redhat.satellite`` collection.


Breaking Changes / Porting Guide
--------------------------------

- All modules were renamed to drop the ``foreman_`` and ``katello_`` prefixes.
Additionally to the prefix removal, the following modules were further ranamed:

* katello_upload to content_upload
* katello_sync to repository_sync
* katello_manifest to subscription_manifest
* foreman_search_facts to resource_info
* foreman_ptable to partition_table
* foreman_model to hardware_model
* foreman_environment to puppet_environment

New Modules
-----------

- redhat.satellite.activation_key - Manage Activation Keys
- redhat.satellite.architecture - Manage Architectures
- redhat.satellite.auth_source_ldap - Manage LDAP Authentication Sources
- redhat.satellite.bookmark - Manage Bookmarks
- redhat.satellite.compute_attribute - Manage Compute Attributes
- redhat.satellite.compute_profile - Manage Compute Profiles
- redhat.satellite.compute_resource - Manage Compute Resources
- redhat.satellite.config_group - Manage (Puppet) Config Groups
- redhat.satellite.content_credential - Manage Content Credentials
- redhat.satellite.content_upload - Upload content to a repository
- redhat.satellite.content_view - Manage Content Views
- redhat.satellite.content_view_filter - Manage Content View Filters
- redhat.satellite.content_view_version - Manage Content View Versions
- redhat.satellite.domain - Manage Domains
- redhat.satellite.external_usergroup - Manage External User Groups
- redhat.satellite.global_parameter - Manage Global Parameters
- redhat.satellite.hardware_model - Manage Hardware Models
- redhat.satellite.host - Manage Hosts
- redhat.satellite.host_collection - Manage Host Collections
- redhat.satellite.host_power - Manage Power State of Hosts
- redhat.satellite.hostgroup - Manage Hostgroups
- redhat.satellite.image - Manage Images
- redhat.satellite.installation_medium - Manage Installation Media
- redhat.satellite.job_template - Manage Job Templates
- redhat.satellite.lifecycle_environment - Manage Lifecycle Environments
- redhat.satellite.location - Manage Locations
- redhat.satellite.operatingsystem - Manage Operating Systems
- redhat.satellite.organization - Manage Organizations
- redhat.satellite.os_default_template - Manage Default Template Associations To Operating Systems
- redhat.satellite.partition_table - Manage Partition Table Templates
- redhat.satellite.product - Manage Products
- redhat.satellite.provisioning_template - Manage Provisioning Templates
- redhat.satellite.puppet_environment - Manage Puppet Environments
- redhat.satellite.realm - Manage Realms
- redhat.satellite.redhat_manifest - Interact with a Red Hat Satellite Subscription Manifest
- redhat.satellite.repository - Manage Repositories
- redhat.satellite.repository_set - Enable/disable Repositories in Repository Sets
- redhat.satellite.repository_sync - Sync a Repository or Product
- redhat.satellite.resource_info - Gather information about resources
- redhat.satellite.role - Manage Roles
- redhat.satellite.scap_content - Manage SCAP content
- redhat.satellite.scap_tailoring_file - Manage SCAP Tailoring Files
- redhat.satellite.scc_account - Manage SUSE Customer Center Accounts
- redhat.satellite.scc_product - Subscribe SUSE Customer Center Account Products
- redhat.satellite.setting - Manage Settings
- redhat.satellite.smart_class_parameter - Manage Smart Class Parameters
- redhat.satellite.snapshot - Manage Snapshots
- redhat.satellite.subnet - Manage Subnets
- redhat.satellite.subscription_manifest - Manage Subscription Manifests
- redhat.satellite.sync_plan - Manage Sync Plans
- redhat.satellite.templates_import - Sync Templates from a repository
- redhat.satellite.user - Manage Users
- redhat.satellite.usergroup - Manage User Groups
Loading

0 comments on commit f133c13

Please sign in to comment.