Skip to content

Commit

Permalink
Merge pull request #7 from RedHatSatellite/update101
Browse files Browse the repository at this point in the history
Update to 1.0.1
  • Loading branch information
ehelms authored Jun 30, 2020
2 parents d3b2cf5 + b2a5d2b commit c4b7ba9
Show file tree
Hide file tree
Showing 54 changed files with 148 additions and 354 deletions.
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:

# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ doc: $(MANIFEST)

branding:
sed -i 's/theforeman\.foreman/redhat.satellite/g' plugins/*/*.py tests/inventory/tests.foreman.yml tests/test_module_state.py tests/test_playbooks/*.yml
sed -i 's/foreman.example.com/satellite.example.com/g' plugins/*/*.py

FORCE:

Expand Down
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ authors:
- "metalcated <[email protected]>"
- "russianguppie <[email protected]>"
- "willtome <[email protected]>"
version: "1.0.0"
version: "1.0.1"
license:
- "GPL-3.0-or-later"
tags:
Expand Down
7 changes: 0 additions & 7 deletions plugins/filter/foreman.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@
__metaclass__ = type


ANSIBLE_METADATA = {
'metadata_version': '1.1',
'status': ['preview'],
'supported_by': 'community'
}


import re


Expand Down
6 changes: 1 addition & 5 deletions plugins/modules/activation_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@
__metaclass__ = type


ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
'supported_by': 'community'}

DOCUMENTATION = '''
---
module: activation_key
Expand Down Expand Up @@ -152,7 +148,7 @@
activation_key:
username: "admin"
password: "changeme"
server_url: "https://foreman.example.com"
server_url: "https://satellite.example.com"
name: "Clients"
organization: "Default Organization"
lifecycle_environment: "Library"
Expand Down
10 changes: 3 additions & 7 deletions plugins/modules/architecture.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@
__metaclass__ = type


ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
'supported_by': 'community'}

DOCUMENTATION = '''
---
module: architecture
Expand Down Expand Up @@ -56,7 +52,7 @@
operatingsystems:
- "TestOS1"
- "TestOS2"
server_url: "https://foreman.example.com"
server_url: "https://satellite.example.com"
username: "admin"
password: "secret"
state: present
Expand All @@ -67,15 +63,15 @@
operatingsystems:
- "TestOS3"
- "TestOS4"
server_url: "https://foreman.example.com"
server_url: "https://satellite.example.com"
username: "admin"
password: "secret"
state: present
- name: "Delete an Architecture"
architecture:
name: "i386"
server_url: "https://foreman.example.com"
server_url: "https://satellite.example.com"
username: "admin"
password: "secret"
state: absent
Expand Down
8 changes: 2 additions & 6 deletions plugins/modules/auth_source_ldap.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@
__metaclass__ = type


ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
'supported_by': 'community'}

DOCUMENTATION = '''
---
module: auth_source_ldap
Expand Down Expand Up @@ -128,7 +124,7 @@
auth_source_ldap:
name: "Example LDAP"
host: "ldap.example.org"
server_url: "https://foreman.example.com"
server_url: "https://satellite.example.com"
locations:
- "Uppsala"
organizations:
Expand All @@ -152,7 +148,7 @@
attr_lastname: sn
attr_mail: mail
attr_photo: jpegPhoto
server_url: "https://foreman.example.com"
server_url: "https://satellite.example.com"
username: "admin"
password: "secret"
state: present
Expand Down
10 changes: 3 additions & 7 deletions plugins/modules/bookmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@
__metaclass__ = type


ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
'supported_by': 'community'}

DOCUMENTATION = '''
---
module: bookmark
Expand Down Expand Up @@ -63,7 +59,7 @@
bookmark:
username: "admin"
password: "changeme"
server_url: "https://foreman.example.com"
server_url: "https://satellite.example.com"
name: "recent"
controller: "job_invocations"
query: "started_at > '24 hours ago'"
Expand All @@ -73,7 +69,7 @@
bookmark:
username: "admin"
password: "changeme"
server_url: "https://foreman.example.com"
server_url: "https://satellite.example.com"
name: "recent"
controller: "job_invocations"
query: "started_at > '12 hours ago'"
Expand All @@ -83,7 +79,7 @@
bookmark:
username: "admin"
password: "changeme"
server_url: "https://foreman.example.com"
server_url: "https://satellite.example.com"
name: "recent"
controller: "job_invocations"
state: absent
Expand Down
8 changes: 2 additions & 6 deletions plugins/modules/compute_attribute.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@
__metaclass__ = type


ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
'supported_by': 'community'}

DOCUMENTATION = '''
---
module: compute_attribute
Expand Down Expand Up @@ -60,7 +56,7 @@
compute_attribute:
username: "admin"
password: "changeme"
server_url: "https://foreman.example.com"
server_url: "https://satellite.example.com"
compute_profile: "Test Compute Profile"
compute_resource: "Test Compute Resource"
vm_attrs:
Expand All @@ -72,7 +68,7 @@
compute_attribute:
username: "admin"
password: "changeme"
server_url: "https://foreman.example.com"
server_url: "https://satellite.example.com"
compute_profile: "Test Compute Profile"
compute_resource: "Test Compute Resource"
vm_attrs:
Expand Down
12 changes: 4 additions & 8 deletions plugins/modules/compute_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@
__metaclass__ = type


ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
'supported_by': 'community'}

DOCUMENTATION = '''
---
module: compute_profile
Expand Down Expand Up @@ -67,7 +63,7 @@
- name: compute profile
compute_profile:
name: example_compute_profile
server_url: "https://foreman.example.com"
server_url: "https://satellite.example.com"
username: admin
password: secret
state: present
Expand All @@ -81,7 +77,7 @@
cluster: 'a96d44a4-f14a-1015-82c6-f80354acdf01'
template: 'c88af4b7-a24a-453b-9ac2-bc647ca2ef99'
instance_type: 'cb8927e7-a404-40fb-a6c1-06cbfc92e077'
server_url: "https://foreman.example.com"
server_url: "https://satellite.example.com"
username: admin
password: secret
state: present
Expand Down Expand Up @@ -125,15 +121,15 @@
capacity: 16G
allocation: 16G
format_type: raw
server_url: "https://foreman.example.com"
server_url: "https://satellite.example.com"
username: admin
password: secret
state: present
- name: Remove compute profile
compute_profile:
name: example_compute_profile2
server_url: "https://foreman.example.com"
server_url: "https://satellite.example.com"
username: admin
password: secret
state: absent
Expand Down
22 changes: 9 additions & 13 deletions plugins/modules/compute_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@
__metaclass__ = type


ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
'supported_by': 'community'}

DOCUMENTATION = '''
---
module: compute_resource
Expand Down Expand Up @@ -137,7 +133,7 @@
provider_params:
url: libvirt.example.com
display_type: vnc
server_url: "https://foreman.example.com"
server_url: "https://satellite.example.com"
username: admin
password: secret
state: present
Expand All @@ -154,15 +150,15 @@
provider_params:
url: libvirt.example.com
display_type: vnc
server_url: "https://foreman.example.com"
server_url: "https://satellite.example.com"
username: admin
password: secret
state: present
- name: Delete libvirt compute resource
compute_resource:
name: example_compute_resource
server_url: "https://foreman.example.com"
server_url: "https://satellite.example.com"
username: admin
password: secret
state: absent
Expand All @@ -180,7 +176,7 @@
user: admin
password: secret
datacenter: ax01
server_url: "https://foreman.example.com"
server_url: "https://satellite.example.com"
username: admin
password: secret
state: present
Expand All @@ -200,7 +196,7 @@
datacenter: aa92fb54-0736-4066-8fa8-b8b9e3bd75ac
ovirt_quota: 24868ab9-c2a1-47c3-87e7-706f17d215ac
use_v4: true
server_url: "https://foreman.example.com"
server_url: "https://satellite.example.com"
username: admin
password: secret
state: present
Expand All @@ -218,7 +214,7 @@
user: root@pam
password: secretpassword
ssl_verify_peer: true
server_url: "https://foreman.example.com"
server_url: "https://satellite.example.com"
username: admin
password: secret
state: present
Expand All @@ -236,7 +232,7 @@
user: AWS_ACCESS_KEY
password: AWS_SECRET_KEY
region: eu-west-1
server_url: "https://foreman.example.com"
server_url: "https://satellite.example.com"
username: admin
password: secret
state: present
Expand All @@ -256,7 +252,7 @@
app_ident: CLIENT_ID
password: CLIENT_SECRET
region: westeurope
server_url: "https://foreman.example.com"
server_url: "https://satellite.example.com"
username: admin
password: secret
state: present
Expand All @@ -275,7 +271,7 @@
email: [email protected]
key_path: "/usr/share/foreman/gce_orcharhino_key.json"
zone: europe-west3-b
server_url: "https://foreman.example.com"
server_url: "https://satellite.example.com"
username: admin
password: secret
state: present
Expand Down
6 changes: 1 addition & 5 deletions plugins/modules/config_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@
__metaclass__ = type


ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
'supported_by': 'community'}

DOCUMENTATION = '''
---
module: config_group
Expand Down Expand Up @@ -56,7 +52,7 @@
puppetclasses:
- ntp
- mymodule::myclass
server_url: "https://foreman.example.com"
server_url: "https://satellite.example.com"
username: "admin"
password: "secret"
state: present
Expand Down
6 changes: 1 addition & 5 deletions plugins/modules/content_credential.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@
__metaclass__ = type


ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
'supported_by': 'community'}

DOCUMENTATION = '''
---
module: content_credential
Expand Down Expand Up @@ -60,7 +56,7 @@
content_credential:
username: "admin"
password: "changeme"
server_url: "https://foreman.example.com"
server_url: "https://satellite.example.com"
name: "RPM-GPG-KEY-my-repo"
content_type: gpg_key
organization: "Default Organization"
Expand Down
6 changes: 1 addition & 5 deletions plugins/modules/content_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@
__metaclass__ = type


ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
'supported_by': 'community'}

DOCUMENTATION = '''
---
module: content_upload
Expand Down Expand Up @@ -65,7 +61,7 @@
content_upload:
username: "admin"
password: "changeme"
server_url: "https://foreman.example.com"
server_url: "https://satellite.example.com"
src: "my.rpm"
repository: "Build RPMs"
product: "My Product"
Expand Down
Loading

0 comments on commit c4b7ba9

Please sign in to comment.