Skip to content

Commit

Permalink
Update proxy_containerized parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
maximenoel8 committed Dec 9, 2024
1 parent bd67eb2 commit b0b728a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/proxy_containerized/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module "proxy_containerized" {
base_configuration = var.base_configuration
image = var.image == "default" || local.product_version == "head" ? var.images[local.product_version] : var.image
name = var.name
use_os_released_updates = true
use_os_released_updates = var.use_os_released_updates
install_salt_bundle = var.install_salt_bundle
ssh_key_path = var.ssh_key_path
additional_repos = var.additional_repos
Expand Down
5 changes: 5 additions & 0 deletions modules/proxy_containerized/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,8 @@ variable "additional_grains" {
description = "custom grain string to be added to this minion's configuration"
default = {}
}

variable "use_os_released_updates" {
description = "Apply all updates from SUSE Linux Enterprise repos"
default = true
}
4 changes: 2 additions & 2 deletions salt/scc/proxy.sls
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% if 'proxy' in grains.get('roles') and not 'proxy_containerized' in grains.get('roles') and grains.get('proxy_registration_code') %}
{% if 'proxy' in grains.get('roles') and grains.get('proxy_registration_code') %}

{% if '4.3' in grains['product_version'] %}
{% if '4.3' in grains['product_version'] and not 'proxy_containerized' in grains.get('roles') %}
register_suse_manager_proxy_with_scc:
cmd.run:
- name: SUSEConnect --url https://scc.suse.com -r {{ grains.get("proxy_registration_code") }} -p SUSE-Manager-Proxy/4.3/x86_64
Expand Down

0 comments on commit b0b728a

Please sign in to comment.