Skip to content

Commit

Permalink
Adding the redhat service
Browse files Browse the repository at this point in the history
It will manage RH subscription and Insights
https://linux-system-roles.github.io/rhc/

Depends-On: openstack-k8s-operators/edpm-ansible#837

closes OSPRH-11938

Signed-off-by: Fabricio Aguiar <[email protected]>
  • Loading branch information
fao89 committed Dec 5, 2024
1 parent 4dd3ceb commit 11fc10a
Show file tree
Hide file tree
Showing 16 changed files with 208 additions and 99 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -900,6 +900,7 @@ spec:
type: integer
services:
default:
- redhat
- download-cache
- bootstrap
- configure-network
Expand Down
2 changes: 1 addition & 1 deletion apis/dataplane/v1beta1/openstackdataplanenodeset_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ type OpenStackDataPlaneNodeSetSpec struct {
NetworkAttachments []string `json:"networkAttachments,omitempty"`

// +kubebuilder:validation:Optional
// +kubebuilder:default={download-cache,bootstrap,configure-network,validate-network,install-os,configure-os,ssh-known-hosts,run-os,reboot-os,install-certs,ovn,neutron-metadata,libvirt,nova,telemetry}
// +kubebuilder:default={redhat,download-cache,bootstrap,configure-network,validate-network,install-os,configure-os,ssh-known-hosts,run-os,reboot-os,install-certs,ovn,neutron-metadata,libvirt,nova,telemetry}
// Services list
Services []string `json:"services"`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -900,6 +900,7 @@ spec:
type: integer
services:
default:
- redhat
- download-cache
- bootstrap
- configure-network
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ spec:
displayName: Template
path: neutron.template
- description: NodeSelector to target subset of worker nodes running control
plane services (currently only applies to KeystoneAPI and PlacementAPI)
plane services
displayName: Node Selector
path: nodeSelector
- description: Nova - Parameters related to the Nova services
Expand Down Expand Up @@ -374,6 +374,9 @@ spec:
- description: Templates - Overrides to use when creating the Rabbitmq clusters
displayName: Templates
path: rabbitmq.templates
- description: NodeSelector to target subset of worker nodes running this service
displayName: Node Selector
path: rabbitmq.templates.nodeSelector
- description: Enabled - Whether the Redis service should be deployed and managed
displayName: Enabled
path: redis.enabled
Expand Down
3 changes: 0 additions & 3 deletions config/samples/dataplane/bgp/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ data:
nodetemplate:
ansible:
vars:
# CHANGEME -- see https://access.redhat.com/solutions/253273
# edpm_bootstrap_command: |
# subscription-manager register --username {{ subscription_manager_username }} --password {{ subscription_manager_password }}
timesync_ntp_servers:
- hostname: pool.ntp.org
# edpm_network_config
Expand Down
3 changes: 0 additions & 3 deletions config/samples/dataplane/bgp_ovn_cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ data:
nodetemplate:
ansible:
vars:
# CHANGEME -- see https://access.redhat.com/solutions/253273
# edpm_bootstrap_command: |
# subscription-manager register --username {{ subscription_manager_username }} --password {{ subscription_manager_password }}
timesync_ntp_servers:
- hostname: pool.ntp.org
# edpm_network_config
Expand Down
4 changes: 0 additions & 4 deletions config/samples/dataplane/customnetworks/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ data:
nodetemplate:
ansible:
vars:
# CHANGEME -- see https://access.redhat.com/solutions/253273
# edpm_bootstrap_command: |
# subscription-manager register --username {{ subscription_manager_username }} --password {{ subscription_manager_password }}

neutron_public_interface_name: enp7s0
ctlplane_dns_nameservers:
- 192.168.1.254
Expand Down
3 changes: 0 additions & 3 deletions config/samples/dataplane/networker/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ data:
nodetemplate:
ansible:
vars:
# CHANGEME -- see https://access.redhat.com/solutions/253273
# edpm_bootstrap_command: |
# subscription-manager register --username {{ subscription_manager_username }} --password {{ subscription_manager_password }}
edpm_enable_chassis_gw: true
nodes:
edpm-networker-0:
Expand Down
3 changes: 0 additions & 3 deletions config/samples/dataplane/nmstate/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ data:
nodetemplate:
ansible:
vars:
# CHANGEME -- see https://access.redhat.com/solutions/253273
# edpm_bootstrap_command: |
# subscription-manager register --username {{ subscription_manager_username }} --password {{ subscription_manager_password }}
edpm_network_config_hide_sensitive_logs: false
edpm_network_config_template: |
---
Expand Down
3 changes: 0 additions & 3 deletions config/samples/dataplane/ovs_dpdk/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ data:
nodetemplate:
ansible:
vars:
# CHANGEME -- see https://access.redhat.com/solutions/253273
# edpm_bootstrap_command: |
# subscription-manager register --username {{ subscription_manager_username }} --password {{ subscription_manager_password }}
edpm_network_config_hide_sensitive_logs: false
edpm_network_config_template: |
---
Expand Down
3 changes: 0 additions & 3 deletions config/samples/dataplane/post_ceph_hci/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ data:
vars:
timesync_ntp_servers:
- hostname: clock.redhat.com
# CHANGEME -- see https://access.redhat.com/solutions/253273
# edpm_bootstrap_command: |
# subscription-manager register --username {{ subscription_manager_username }} --password {{ subscription_manager_password }}
edpm_iscsid_image: '{{ registry_url }}/openstack-iscsid:{{ image_tag }}'
edpm_logrotate_crond_image: '{{ registry_url }}/openstack-cron:{{ image_tag }}'
edpm_network_config_hide_sensitive_logs: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,11 @@ spec:
configMapRef:
name: neutron-edpm
# CHANGEME -- see https://access.redhat.com/solutions/253273
# - prefix: subscription_manager_
# secretRef:
# - secretRef:
# name: subscription-manager
# - secretRef:
# name: redhat-registry
ansibleVars:
# CHANGEME -- see https://access.redhat.com/solutions/253273
# edpm_bootstrap_command: |
# subscription-manager register --username {{ subscription_manager_username }} --password {{ subscription_manager_password }}
edpm_nodes_validation_validate_controllers_icmp: false
edpm_nodes_validation_validate_gateway_icmp: false
gather_facts: false
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: dataplane.openstack.org/v1beta1
kind: OpenStackDataPlaneService
metadata:
name: redhat
spec:
playbook: osp.edpm.redhat
Loading

0 comments on commit 11fc10a

Please sign in to comment.