ansible-semaphore

by Cloudhippie

Helm chartv15.6.1App 2.20.24Apache-2.0Verified publisher

Modern and open-source alternative to AWX/Tower

About this chart

ansible-semaphore

Modern and open-source alternative to AWX/Tower

Homepage: https://semaphoreui.com/

This chart is not maintained by the upstream project and any issues with the chart should be raised here

Installing the Chart

OCI (Recommended)

helm install ansible-semaphore oci://ghcr.io/cloudhippie/charts/ansible-semaphore

Traditional

helm repo add cloudhippie https://cloudhippie.github.io/charts
helm repo update
helm install ansible-semaphore cloudhippie/ansible-semaphore

Example for Values

Ingress Enabled

ingress:
  enabled: false

  hosts:
    - host: ansible-semaphore.example.com
      paths:
        - path: /
          pathType: Prefix

Bundled MariaDB

Warning: Use this database deployment only for testing, we recommend a proper deployment based on some operator to have a real lifecycle management.

database:
  type: mysql

  host: mariadb
  port: 3306

  usernameFromSecret: false
  passwordKey: mariadb-password
  existingSecret: mariadb

mariadb:
  enabled: true

  auth:
    password: p455w0rd

Bundled PostgreSQL

Warning: Use this database deployment only for testing, we recommend a proper deployment based on some operator to have a real lifecycle management.

database:
  type: postgres

  host: postgresql
  port: 5432

  usernameFromSecret: false
  passwordKey: password
  existingSecret: postgresql

postgresql:
  enabled: true

  auth:
    password: p455w0rd

OpenID Connect

oidc:
  enable: true

  providers:
    keycloak:
      display_name: Keycloak
      provider_url: https://auth.example.com/auth/realms/example
      redirect_url: https://semaphore.example.com/api/auth/oidc/keycloak/redirect
      client_id: semaphore
      client_secret: 0208901c-ecd7-46ae-931a-d03f02e8dcd2
      username_claim: preferred_username
      name_claim: preferred_username
      email_claim: email

Maintainers

NameEmailUrl
tboerger[email protected]https://github.com/tboerger

Source Code

Requirements

RepositoryNameVersion
oci://registry-1.docker.io/cloudpiratesmariadb0.17.1
oci://registry-1.docker.io/cloudpiratespostgres0.22.1

Values

KeyTypeDefaultDescription
admin.createboolfalseCreate an local admin user
admin.emailstring"admin@localhost"Email for local admin
admin.emailKeystring"email"Key used within secret for email
admin.existingSecretstringnilExisting secret to use for admin
admin.fullnamestring"Admin"Fullname for local admin
admin.fullnameKeystring"fullname"Key used within secret for fullname
admin.passwordstringnilPassword for local admin
admin.passwordKeystring"password"Key used within secret for password
admin.usernamestring"admin"Username for local admin
admin.usernameKeystring"username"Key used within secret for username
affinityobject{}Affinity for the deployment
annotationsobject{}Define additional annotations
billing.enabledboolfalseEnable billing
database.existingSecretstringnilExisting secret to use for credentials
database.hoststringnilHost for database connection
database.namestring"semaphore"Name of the used database
database.optionsobject{}Options for database connection
database.passwordstringnilPassword for database
database.passwordKeystring"password"Key used within secret for password
database.pathstring"/var/lib/semaphore/database.sqlite"Path for the SQLite database file
database.persistence.accessModeslist["ReadWriteOnce"]Access modes used for SQLite volume
database.persistence.enabledbooltrueEnable persistence for SQLite
database.persistence.existingClaimstringnilName of an already existing claim
database.persistence.sizestring"5G"Size for SQLite volume
database.persistence.storageClassstringnilStorage class used for SQLite volume
database.portstringnilPort for database connection
database.typestring"sqlite"Type of database backend
database.usernamestring"semaphore"Username for database
database.usernameFromSecretbooltrueRead username from secret
database.usernameKeystring"username"Key used within secret for username
email.alertboolfalseEnable email alerting
email.existingSecretstringnilExisting secret to use for email
email.hoststringnilHost of the SMTP server
email.passwordstringnilPassword for SMTP server
email.passwordKeystring"password"Key used within secret for password
email.portstringnilPort of the SMTP server
email.secureboolfalseEnable a secure connection
email.senderstringnilSender for email alerting
email.usernamestringnilUsername for SMTP server
email.usernameKeystring"username"Key used within secret for username
envFromConfigMapslist[]List of environment variables from existing configmaps
envFromSecretslist[]List of environment variables from existing secrets
extraEnvSecretsobject{}Extra environment variables from secrets
extraEnvVariablesobject{}Extra environment variables from mapping
extraInitContainerslist[]List of extra init containers
extraSidecarContainerslist[]List of extra sidecar containers
extraVolumeMountslist[]List of extra volume mounts
extraVolumeslist[]List of extra volumes
fullnameOverridestring""Override the fullname
general.additionalPythonPackageslist[]Additional Python packages
general.gitClientstring"cmd_git"Use Git client implementation
general.hoststringnilHost to access Semaphore
general.maxParallelTasksint0Maximum parallel tasks
general.nonAdminCanCreateProjectboolfalseAllow non-admins to create projects
general.passwordLoginDisableboolfalseDisable password login
general.sshConfigPathstring"~/.ssh/config"Path to SSH config
general.tmpPathstring"/tmp/semaphore"Working directory for Semaphore
general.useRemoteRunnerboolfalseEnable usage of remote runners
image.pullPolicystring"IfNotPresent"Image pull policy
image.pullSecretslist[]Optional name of pull secret if using a private registry
image.repositorystring"semaphoreui/semaphore"Image repository used by deployment
image.tagstring""Optional tag for the repository, defaults to app version
ingress.annotationsobject{}Additional annotations for the ingress
ingress.classNamestringnilClass name for the ingress resource
ingress.enabledboolfalseEnable ingress
ingress.hostslist[{"host":"example.local","paths":[{"path":"/","pathType":"Prefix"}]}]Host definition for ingress
ingress.labelsobject{}Additional labels for the ingress
ingress.tlslist[]Optional TLS configuration for ingress
labelsobject{}Define additional labels
ldap.binddnstringnilBindDN for LDAP authentication
ldap.binddnKeystring"username"Key used within secret for username
ldap.enableboolfalseEnable LDAP authentication
ldap.existingSecretstringnilExisting secret to use for ldap
ldap.filterstringnilSearch filter for LDAP
ldap.mappingsobject{"cn":"cn","dn":"dn","mail":"mail","uid":"uid"}Mapping for LDAP attributes
ldap.needtlsboolfalseEnable TLS connection to LDAP
ldap.passwordstringnilPassword for LDAP authentication
ldap.passwordKeystring"password"Key used within secret for username
ldap.searchdnstringnil
ldap.serverstringnilAddress of LDAP server
mariadb.auth.databasestring"semaphore"Database created for semaphore
mariadb.auth.passwordstringnilPassword for semaphore database
mariadb.auth.rootPasswordstringnilPassword for mariadb admin user
mariadb.auth.usernamestring"semaphore"Username for semaphore database
mariadb.enabledboolfalseEnable mariadb dependency
mariadb.fullnameOverridestring"mariadb"Override fullname of mariadb dependency
nameOverridestring""Override the name
networkPolicy.allowExternalEgressbooltrueAllow any egress traffic to external sources
networkPolicy.allowExternalIngressbooltrueAllow any ingress traffic from external sources
networkPolicy.egressMariadbMatchlist[{"podSelector":{"matchLabels":{"app.kubernetes.io/name":"mariadb"}}}]Match to allow egress traffic to Redis service
networkPolicy.egressMariadbPortint3306Egress port for MariaDB service
networkPolicy.egressPostgresMatchlist[{"podSelector":{"matchLabels":{"app.kubernetes.io/name":"postgres"}}}]Match to allow egress traffic to Postgres service
networkPolicy.egressPostgresPortint5432Egress port for Postgres service
networkPolicy.enabledboolfalseSpecifies whether a NetworkPolicy should be created
networkPolicy.extraEgresslist[]List of extra egress rules to the NetworkPolicy
networkPolicy.extraIngresslist[]List of extra ingress rules to the NetworkPolicy
networkPolicy.generalEgresslist[{"ports":[{"port":53,"protocol":"UDP"},{"port":53,"protocol":"TCP"}]}]List of general egress rules to the NetworkPolicy
networkPolicy.ingressServiceMatchlist[]Match to allow ingress traffic to service port
nodeSelectorobject{}Node selector for the deployment
oidc.enableboolfalseEnable oidc authentication
oidc.providersobject{}Dictionary of oidc providers
persistence.accessModeslist["ReadWriteOnce"]Access modes used for workdir volume
persistence.enabledbooltrueEnable persistence for workdir
persistence.existingClaimstringnilName of an already existing claim
persistence.sizestring"10G"Size for workdir volume
persistence.storageClassstringnilStorage class used for workdir volume
podSecurityContextobject{}Security context for the pod
postgres.auth.databasestring"semaphore"Database created for semaphore
postgres.auth.passwordstringnilPassword for semaphore database
postgres.auth.postgresPasswordstringnilPassword for postgres admin user
postgres.auth.usernamestring"semaphore"Username for semaphore database
postgres.enabledboolfalseEnable postgres dependency
postgres.fullnameOverridestring"postgres"Override fullname of postgres dependency
replicaCountint1Replicas for the deployment
resourcesobject{"limits":{},"requests":{"cpu":"100m","memory":"64Mi"}}Resources for the deployment
runner.existingSecretstringnilExisting secret to use for runner
runner.tokenstringnilRunner registration token
runner.tokenKeystring"token"Key used within secret for token
secrets.accesskeyEncryptionstringnilAccess key encryption secret, generated if not present
secrets.accesskeyEncryptionKeystring"accesskeyEncryption"Key used within secret for accesskeyEncryption
secrets.cookieEncryptionstringnilCookie encryption secret, generated if not present
secrets.cookieEncryptionKeystring"cookieEncryption"Key used within secret for cookieEncryption
secrets.cookieHashstringnilCookie hash secret, generated if not present
secrets.cookieHashKeystring"cookieHash"Key used within secret for cookieHash
secrets.existingSecretstringnilExisting secret to use for secrets
securityContextobject{"fsGroup":1001}Security context for the deployment
service.annotationsobject{}Additional annotations for the service
service.internalPortint3000Internal port of the service
service.labelsobject{}Additional labels for the service
service.portint3000Port of the service
service.typestring"ClusterIP"Type of the service
serviceAccount.annotationsobject{}Define annotations for the service account
serviceAccount.automountTokenboolfalseAutomount service account token
serviceAccount.createbooltrueCreate a new service account
serviceAccount.namestring""Optional name for an existing service account
slack.alertboolfalseEnable slack alerting
slack.existingSecretstringnilExisting secret to use for slack
slack.urlstringnilURL used for slack
slack.urlKeystring"url"Key used within secret for url
telegram.alertboolfalseEnable telegram alerting
telegram.chatstringnilChat used for telegram
tel

Deploy ansible-semaphore with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has ansible-semaphore on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartansible-semaphore is pinned at v15.6.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply