ansible-semaphore
by Cloudhippie
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
| Name | Url | |
|---|---|---|
| tboerger | [email protected] | https://github.com/tboerger |
Source Code
Requirements
| Repository | Name | Version |
|---|---|---|
| oci://registry-1.docker.io/cloudpirates | mariadb | 0.17.1 |
| oci://registry-1.docker.io/cloudpirates | postgres | 0.22.1 |
Values
| Key | Type | Default | Description |
|---|---|---|---|
| admin.create | bool | false | Create an local admin user |
| admin.email | string | "admin@localhost" | Email for local admin |
| admin.emailKey | string | "email" | Key used within secret for email |
| admin.existingSecret | string | nil | Existing secret to use for admin |
| admin.fullname | string | "Admin" | Fullname for local admin |
| admin.fullnameKey | string | "fullname" | Key used within secret for fullname |
| admin.password | string | nil | Password for local admin |
| admin.passwordKey | string | "password" | Key used within secret for password |
| admin.username | string | "admin" | Username for local admin |
| admin.usernameKey | string | "username" | Key used within secret for username |
| affinity | object | {} | Affinity for the deployment |
| annotations | object | {} | Define additional annotations |
| billing.enabled | bool | false | Enable billing |
| database.existingSecret | string | nil | Existing secret to use for credentials |
| database.host | string | nil | Host for database connection |
| database.name | string | "semaphore" | Name of the used database |
| database.options | object | {} | Options for database connection |
| database.password | string | nil | Password for database |
| database.passwordKey | string | "password" | Key used within secret for password |
| database.path | string | "/var/lib/semaphore/database.sqlite" | Path for the SQLite database file |
| database.persistence.accessModes | list | ["ReadWriteOnce"] | Access modes used for SQLite volume |
| database.persistence.enabled | bool | true | Enable persistence for SQLite |
| database.persistence.existingClaim | string | nil | Name of an already existing claim |
| database.persistence.size | string | "5G" | Size for SQLite volume |
| database.persistence.storageClass | string | nil | Storage class used for SQLite volume |
| database.port | string | nil | Port for database connection |
| database.type | string | "sqlite" | Type of database backend |
| database.username | string | "semaphore" | Username for database |
| database.usernameFromSecret | bool | true | Read username from secret |
| database.usernameKey | string | "username" | Key used within secret for username |
| email.alert | bool | false | Enable email alerting |
| email.existingSecret | string | nil | Existing secret to use for email |
| email.host | string | nil | Host of the SMTP server |
| email.password | string | nil | Password for SMTP server |
| email.passwordKey | string | "password" | Key used within secret for password |
| email.port | string | nil | Port of the SMTP server |
| email.secure | bool | false | Enable a secure connection |
| email.sender | string | nil | Sender for email alerting |
| email.username | string | nil | Username for SMTP server |
| email.usernameKey | string | "username" | Key used within secret for username |
| envFromConfigMaps | list | [] | List of environment variables from existing configmaps |
| envFromSecrets | list | [] | List of environment variables from existing secrets |
| extraEnvSecrets | object | {} | Extra environment variables from secrets |
| extraEnvVariables | object | {} | Extra environment variables from mapping |
| extraInitContainers | list | [] | List of extra init containers |
| extraSidecarContainers | list | [] | List of extra sidecar containers |
| extraVolumeMounts | list | [] | List of extra volume mounts |
| extraVolumes | list | [] | List of extra volumes |
| fullnameOverride | string | "" | Override the fullname |
| general.additionalPythonPackages | list | [] | Additional Python packages |
| general.gitClient | string | "cmd_git" | Use Git client implementation |
| general.host | string | nil | Host to access Semaphore |
| general.maxParallelTasks | int | 0 | Maximum parallel tasks |
| general.nonAdminCanCreateProject | bool | false | Allow non-admins to create projects |
| general.passwordLoginDisable | bool | false | Disable password login |
| general.sshConfigPath | string | "~/.ssh/config" | Path to SSH config |
| general.tmpPath | string | "/tmp/semaphore" | Working directory for Semaphore |
| general.useRemoteRunner | bool | false | Enable usage of remote runners |
| image.pullPolicy | string | "IfNotPresent" | Image pull policy |
| image.pullSecrets | list | [] | Optional name of pull secret if using a private registry |
| image.repository | string | "semaphoreui/semaphore" | Image repository used by deployment |
| image.tag | string | "" | Optional tag for the repository, defaults to app version |
| ingress.annotations | object | {} | Additional annotations for the ingress |
| ingress.className | string | nil | Class name for the ingress resource |
| ingress.enabled | bool | false | Enable ingress |
| ingress.hosts | list | [{"host":"example.local","paths":[{"path":"/","pathType":"Prefix"}]}] | Host definition for ingress |
| ingress.labels | object | {} | Additional labels for the ingress |
| ingress.tls | list | [] | Optional TLS configuration for ingress |
| labels | object | {} | Define additional labels |
| ldap.binddn | string | nil | BindDN for LDAP authentication |
| ldap.binddnKey | string | "username" | Key used within secret for username |
| ldap.enable | bool | false | Enable LDAP authentication |
| ldap.existingSecret | string | nil | Existing secret to use for ldap |
| ldap.filter | string | nil | Search filter for LDAP |
| ldap.mappings | object | {"cn":"cn","dn":"dn","mail":"mail","uid":"uid"} | Mapping for LDAP attributes |
| ldap.needtls | bool | false | Enable TLS connection to LDAP |
| ldap.password | string | nil | Password for LDAP authentication |
| ldap.passwordKey | string | "password" | Key used within secret for username |
| ldap.searchdn | string | nil | |
| ldap.server | string | nil | Address of LDAP server |
| mariadb.auth.database | string | "semaphore" | Database created for semaphore |
| mariadb.auth.password | string | nil | Password for semaphore database |
| mariadb.auth.rootPassword | string | nil | Password for mariadb admin user |
| mariadb.auth.username | string | "semaphore" | Username for semaphore database |
| mariadb.enabled | bool | false | Enable mariadb dependency |
| mariadb.fullnameOverride | string | "mariadb" | Override fullname of mariadb dependency |
| nameOverride | string | "" | Override the name |
| networkPolicy.allowExternalEgress | bool | true | Allow any egress traffic to external sources |
| networkPolicy.allowExternalIngress | bool | true | Allow any ingress traffic from external sources |
| networkPolicy.egressMariadbMatch | list | [{"podSelector":{"matchLabels":{"app.kubernetes.io/name":"mariadb"}}}] | Match to allow egress traffic to Redis service |
| networkPolicy.egressMariadbPort | int | 3306 | Egress port for MariaDB service |
| networkPolicy.egressPostgresMatch | list | [{"podSelector":{"matchLabels":{"app.kubernetes.io/name":"postgres"}}}] | Match to allow egress traffic to Postgres service |
| networkPolicy.egressPostgresPort | int | 5432 | Egress port for Postgres service |
| networkPolicy.enabled | bool | false | Specifies whether a NetworkPolicy should be created |
| networkPolicy.extraEgress | list | [] | List of extra egress rules to the NetworkPolicy |
| networkPolicy.extraIngress | list | [] | List of extra ingress rules to the NetworkPolicy |
| networkPolicy.generalEgress | list | [{"ports":[{"port":53,"protocol":"UDP"},{"port":53,"protocol":"TCP"}]}] | List of general egress rules to the NetworkPolicy |
| networkPolicy.ingressServiceMatch | list | [] | Match to allow ingress traffic to service port |
| nodeSelector | object | {} | Node selector for the deployment |
| oidc.enable | bool | false | Enable oidc authentication |
| oidc.providers | object | {} | Dictionary of oidc providers |
| persistence.accessModes | list | ["ReadWriteOnce"] | Access modes used for workdir volume |
| persistence.enabled | bool | true | Enable persistence for workdir |
| persistence.existingClaim | string | nil | Name of an already existing claim |
| persistence.size | string | "10G" | Size for workdir volume |
| persistence.storageClass | string | nil | Storage class used for workdir volume |
| podSecurityContext | object | {} | Security context for the pod |
| postgres.auth.database | string | "semaphore" | Database created for semaphore |
| postgres.auth.password | string | nil | Password for semaphore database |
| postgres.auth.postgresPassword | string | nil | Password for postgres admin user |
| postgres.auth.username | string | "semaphore" | Username for semaphore database |
| postgres.enabled | bool | false | Enable postgres dependency |
| postgres.fullnameOverride | string | "postgres" | Override fullname of postgres dependency |
| replicaCount | int | 1 | Replicas for the deployment |
| resources | object | {"limits":{},"requests":{"cpu":"100m","memory":"64Mi"}} | Resources for the deployment |
| runner.existingSecret | string | nil | Existing secret to use for runner |
| runner.token | string | nil | Runner registration token |
| runner.tokenKey | string | "token" | Key used within secret for token |
| secrets.accesskeyEncryption | string | nil | Access key encryption secret, generated if not present |
| secrets.accesskeyEncryptionKey | string | "accesskeyEncryption" | Key used within secret for accesskeyEncryption |
| secrets.cookieEncryption | string | nil | Cookie encryption secret, generated if not present |
| secrets.cookieEncryptionKey | string | "cookieEncryption" | Key used within secret for cookieEncryption |
| secrets.cookieHash | string | nil | Cookie hash secret, generated if not present |
| secrets.cookieHashKey | string | "cookieHash" | Key used within secret for cookieHash |
| secrets.existingSecret | string | nil | Existing secret to use for secrets |
| securityContext | object | {"fsGroup":1001} | Security context for the deployment |
| service.annotations | object | {} | Additional annotations for the service |
| service.internalPort | int | 3000 | Internal port of the service |
| service.labels | object | {} | Additional labels for the service |
| service.port | int | 3000 | Port of the service |
| service.type | string | "ClusterIP" | Type of the service |
| serviceAccount.annotations | object | {} | Define annotations for the service account |
| serviceAccount.automountToken | bool | false | Automount service account token |
| serviceAccount.create | bool | true | Create a new service account |
| serviceAccount.name | string | "" | Optional name for an existing service account |
| slack.alert | bool | false | Enable slack alerting |
| slack.existingSecret | string | nil | Existing secret to use for slack |
| slack.url | string | nil | URL used for slack |
| slack.urlKey | string | "url" | Key used within secret for url |
| telegram.alert | bool | false | Enable telegram alerting |
| telegram.chat | string | nil | Chat 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartansible-semaphore is pinned at v15.6.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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