first commit
This commit is contained in:
536
nomad_backup/20251115_141532/hass.json
Normal file
536
nomad_backup/20251115_141532/hass.json
Normal file
@@ -0,0 +1,536 @@
|
||||
{
|
||||
"Affinities": [
|
||||
{
|
||||
"LTarget": "${attr.unique.hostname}",
|
||||
"Operand": "=",
|
||||
"RTarget": "odroid2",
|
||||
"Weight": 80
|
||||
}
|
||||
],
|
||||
"AllAtOnce": false,
|
||||
"Constraints": [
|
||||
{
|
||||
"LTarget": "${attr.kernel.name}",
|
||||
"Operand": "=",
|
||||
"RTarget": "linux"
|
||||
},
|
||||
{
|
||||
"LTarget": "${attr.unique.hostname}",
|
||||
"Operand": "regexp",
|
||||
"RTarget": "odroid.*"
|
||||
}
|
||||
],
|
||||
"ConsulNamespace": "",
|
||||
"CreateIndex": 13607995,
|
||||
"Datacenters": [
|
||||
"dc1"
|
||||
],
|
||||
"DispatchIdempotencyToken": "",
|
||||
"Dispatched": false,
|
||||
"ID": "hass",
|
||||
"JobModifyIndex": 13992633,
|
||||
"Meta": null,
|
||||
"ModifyIndex": 13992664,
|
||||
"Multiregion": null,
|
||||
"Name": "hass",
|
||||
"Namespace": "default",
|
||||
"NodePool": "default",
|
||||
"NomadTokenID": "",
|
||||
"ParameterizedJob": null,
|
||||
"ParentID": "",
|
||||
"Payload": null,
|
||||
"Periodic": null,
|
||||
"Priority": 50,
|
||||
"Region": "global",
|
||||
"Spreads": null,
|
||||
"Stable": true,
|
||||
"Status": "running",
|
||||
"StatusDescription": "",
|
||||
"Stop": false,
|
||||
"SubmitTime": 1757869441327214250,
|
||||
"TaskGroups": [
|
||||
{
|
||||
"Affinities": null,
|
||||
"Constraints": null,
|
||||
"Consul": null,
|
||||
"Count": 1,
|
||||
"Disconnect": null,
|
||||
"EphemeralDisk": {
|
||||
"Migrate": false,
|
||||
"SizeMB": 300,
|
||||
"Sticky": false
|
||||
},
|
||||
"MaxClientDisconnect": null,
|
||||
"Meta": null,
|
||||
"Migrate": {
|
||||
"HealthCheck": "checks",
|
||||
"HealthyDeadline": 300000000000,
|
||||
"MaxParallel": 1,
|
||||
"MinHealthyTime": 10000000000
|
||||
},
|
||||
"Name": "hass",
|
||||
"Networks": [
|
||||
{
|
||||
"ReservedPorts": [
|
||||
{
|
||||
"HostNetwork": "default",
|
||||
"Label": "http",
|
||||
"To": 8123,
|
||||
"Value": 8123
|
||||
},
|
||||
{
|
||||
"HostNetwork": "default",
|
||||
"Label": "http_8989",
|
||||
"To": 8989,
|
||||
"Value": 8989
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"PreventRescheduleOnLost": false,
|
||||
"ReschedulePolicy": {
|
||||
"Attempts": 0,
|
||||
"Delay": 30000000000,
|
||||
"DelayFunction": "exponential",
|
||||
"Interval": 0,
|
||||
"MaxDelay": 3600000000000,
|
||||
"Unlimited": true
|
||||
},
|
||||
"RestartPolicy": {
|
||||
"Attempts": 99,
|
||||
"Delay": 10000000000,
|
||||
"Interval": 3600000000000,
|
||||
"Mode": "delay",
|
||||
"RenderTemplates": false
|
||||
},
|
||||
"Scaling": null,
|
||||
"Services": null,
|
||||
"ShutdownDelay": null,
|
||||
"Spreads": null,
|
||||
"StopAfterClientDisconnect": null,
|
||||
"Tasks": [
|
||||
{
|
||||
"Actions": null,
|
||||
"Affinities": null,
|
||||
"Artifacts": null,
|
||||
"CSIPluginConfig": null,
|
||||
"Config": {
|
||||
"memory_hard_limit": "2048",
|
||||
"image_pull_timeout": "10m",
|
||||
"force_pull": false,
|
||||
"image": "ghcr.io/sstent/rsync",
|
||||
"volumes": [
|
||||
"/mnt/configs/${NOMAD_GROUP_NAME}:/config",
|
||||
"/mnt/Public/config/${NOMAD_GROUP_NAME}:/configbackup",
|
||||
"/mnt/Public/config/locks:/locks"
|
||||
]
|
||||
},
|
||||
"Constraints": null,
|
||||
"Consul": null,
|
||||
"DispatchPayload": null,
|
||||
"Driver": "docker",
|
||||
"Env": {
|
||||
"DB_NAME": "home-assistant_v2.db"
|
||||
},
|
||||
"Identities": null,
|
||||
"Identity": {
|
||||
"Audience": [
|
||||
"nomadproject.io"
|
||||
],
|
||||
"ChangeMode": "",
|
||||
"ChangeSignal": "",
|
||||
"Env": false,
|
||||
"File": false,
|
||||
"Filepath": "",
|
||||
"Name": "default",
|
||||
"ServiceName": "",
|
||||
"TTL": 0
|
||||
},
|
||||
"KillSignal": "",
|
||||
"KillTimeout": 5000000000,
|
||||
"Kind": "",
|
||||
"Leader": false,
|
||||
"Lifecycle": {
|
||||
"Hook": "prestart",
|
||||
"Sidecar": false
|
||||
},
|
||||
"LogConfig": {
|
||||
"Disabled": false,
|
||||
"MaxFileSizeMB": 10,
|
||||
"MaxFiles": 10
|
||||
},
|
||||
"Meta": null,
|
||||
"Name": "init",
|
||||
"Resources": {
|
||||
"CPU": 20,
|
||||
"Cores": 0,
|
||||
"Devices": null,
|
||||
"DiskMB": 0,
|
||||
"IOPS": 0,
|
||||
"MemoryMB": 20,
|
||||
"MemoryMaxMB": 0,
|
||||
"NUMA": null,
|
||||
"Networks": null,
|
||||
"SecretsMB": 0
|
||||
},
|
||||
"RestartPolicy": {
|
||||
"Attempts": 99,
|
||||
"Delay": 10000000000,
|
||||
"Interval": 3600000000000,
|
||||
"Mode": "delay",
|
||||
"RenderTemplates": false
|
||||
},
|
||||
"ScalingPolicies": null,
|
||||
"Schedule": null,
|
||||
"Services": null,
|
||||
"ShutdownDelay": 0,
|
||||
"Templates": null,
|
||||
"User": "",
|
||||
"Vault": null,
|
||||
"VolumeMounts": null
|
||||
},
|
||||
{
|
||||
"Actions": null,
|
||||
"Affinities": null,
|
||||
"Artifacts": null,
|
||||
"CSIPluginConfig": null,
|
||||
"Config": {
|
||||
"image": "ghcr.io/sstent/rsync",
|
||||
"volumes": [
|
||||
"/mnt/configs/${NOMAD_GROUP_NAME}:/config",
|
||||
"/mnt/Public/config/${NOMAD_GROUP_NAME}:/configbackup",
|
||||
"/mnt/Public/config/locks:/locks"
|
||||
],
|
||||
"memory_hard_limit": "2048"
|
||||
},
|
||||
"Constraints": null,
|
||||
"Consul": null,
|
||||
"DispatchPayload": null,
|
||||
"Driver": "docker",
|
||||
"Env": null,
|
||||
"Identities": null,
|
||||
"Identity": {
|
||||
"Audience": [
|
||||
"nomadproject.io"
|
||||
],
|
||||
"ChangeMode": "",
|
||||
"ChangeSignal": "",
|
||||
"Env": false,
|
||||
"File": false,
|
||||
"Filepath": "",
|
||||
"Name": "default",
|
||||
"ServiceName": "",
|
||||
"TTL": 0
|
||||
},
|
||||
"KillSignal": "",
|
||||
"KillTimeout": 5000000000,
|
||||
"Kind": "",
|
||||
"Leader": false,
|
||||
"Lifecycle": {
|
||||
"Hook": "poststop",
|
||||
"Sidecar": false
|
||||
},
|
||||
"LogConfig": {
|
||||
"Disabled": false,
|
||||
"MaxFileSizeMB": 10,
|
||||
"MaxFiles": 10
|
||||
},
|
||||
"Meta": null,
|
||||
"Name": "finalsync",
|
||||
"Resources": {
|
||||
"CPU": 20,
|
||||
"Cores": 0,
|
||||
"Devices": null,
|
||||
"DiskMB": 0,
|
||||
"IOPS": 0,
|
||||
"MemoryMB": 128,
|
||||
"MemoryMaxMB": 0,
|
||||
"NUMA": null,
|
||||
"Networks": null,
|
||||
"SecretsMB": 0
|
||||
},
|
||||
"RestartPolicy": {
|
||||
"Attempts": 99,
|
||||
"Delay": 10000000000,
|
||||
"Interval": 3600000000000,
|
||||
"Mode": "delay",
|
||||
"RenderTemplates": false
|
||||
},
|
||||
"ScalingPolicies": null,
|
||||
"Schedule": null,
|
||||
"Services": null,
|
||||
"ShutdownDelay": 0,
|
||||
"Templates": null,
|
||||
"User": "",
|
||||
"Vault": null,
|
||||
"VolumeMounts": null
|
||||
},
|
||||
{
|
||||
"Actions": null,
|
||||
"Affinities": null,
|
||||
"Artifacts": null,
|
||||
"CSIPluginConfig": null,
|
||||
"Config": {
|
||||
"args": [
|
||||
"client"
|
||||
],
|
||||
"memory_hard_limit": "2048",
|
||||
"image": "ghcr.io/sstent/rsync",
|
||||
"volumes": [
|
||||
"/mnt/configs/:/configs",
|
||||
"/mnt/Public/config/${NOMAD_GROUP_NAME}:/configbackup"
|
||||
]
|
||||
},
|
||||
"Constraints": null,
|
||||
"Consul": null,
|
||||
"DispatchPayload": null,
|
||||
"Driver": "docker",
|
||||
"Env": {
|
||||
"CRON_TASK_1": "50 8-20 * * *rsync -av --exclude='*.db*' --exclude='*.db' --exclude='.db-litestream' --exclude='generations' /configs/${NOMAD_GROUP_NAME}/ /configbackup/;"
|
||||
},
|
||||
"Identities": null,
|
||||
"Identity": {
|
||||
"Audience": [
|
||||
"nomadproject.io"
|
||||
],
|
||||
"ChangeMode": "",
|
||||
"ChangeSignal": "",
|
||||
"Env": false,
|
||||
"File": false,
|
||||
"Filepath": "",
|
||||
"Name": "default",
|
||||
"ServiceName": "",
|
||||
"TTL": 0
|
||||
},
|
||||
"KillSignal": "",
|
||||
"KillTimeout": 5000000000,
|
||||
"Kind": "",
|
||||
"Leader": false,
|
||||
"Lifecycle": {
|
||||
"Hook": "poststart",
|
||||
"Sidecar": true
|
||||
},
|
||||
"LogConfig": {
|
||||
"Disabled": false,
|
||||
"MaxFileSizeMB": 10,
|
||||
"MaxFiles": 10
|
||||
},
|
||||
"Meta": null,
|
||||
"Name": "sync",
|
||||
"Resources": {
|
||||
"CPU": 20,
|
||||
"Cores": 0,
|
||||
"Devices": null,
|
||||
"DiskMB": 0,
|
||||
"IOPS": 0,
|
||||
"MemoryMB": 20,
|
||||
"MemoryMaxMB": 0,
|
||||
"NUMA": null,
|
||||
"Networks": null,
|
||||
"SecretsMB": 0
|
||||
},
|
||||
"RestartPolicy": {
|
||||
"Attempts": 99,
|
||||
"Delay": 10000000000,
|
||||
"Interval": 3600000000000,
|
||||
"Mode": "delay",
|
||||
"RenderTemplates": false
|
||||
},
|
||||
"ScalingPolicies": null,
|
||||
"Schedule": null,
|
||||
"Services": null,
|
||||
"ShutdownDelay": 0,
|
||||
"Templates": null,
|
||||
"User": "",
|
||||
"Vault": null,
|
||||
"VolumeMounts": null
|
||||
},
|
||||
{
|
||||
"Actions": null,
|
||||
"Affinities": null,
|
||||
"Artifacts": null,
|
||||
"CSIPluginConfig": null,
|
||||
"Config": {
|
||||
"network_mode": "host",
|
||||
"cap_add": [
|
||||
"NET_ADMIN"
|
||||
],
|
||||
"force_pull": false,
|
||||
"volumes": [
|
||||
"/etc/localtime:/etc/localtime",
|
||||
"local/configuration.yaml:/config/configuration.yaml",
|
||||
"local/ui-lovelace.yaml:/config/ui-lovelace.yaml",
|
||||
"/mnt/configs/hass:/config"
|
||||
],
|
||||
"image": "ghcr.io/home-assistant/home-assistant:stable",
|
||||
"ports": [
|
||||
"http",
|
||||
"http_8989"
|
||||
],
|
||||
"memory_hard_limit": "2048"
|
||||
},
|
||||
"Constraints": [
|
||||
{
|
||||
"LTarget": "${attr.consul.version}",
|
||||
"Operand": "semver",
|
||||
"RTarget": ">= 1.8.0"
|
||||
}
|
||||
],
|
||||
"Consul": null,
|
||||
"DispatchPayload": null,
|
||||
"Driver": "docker",
|
||||
"Env": {
|
||||
"JEMALLOC_DISABLE": "true"
|
||||
},
|
||||
"Identities": null,
|
||||
"Identity": {
|
||||
"Audience": [
|
||||
"nomadproject.io"
|
||||
],
|
||||
"ChangeMode": "",
|
||||
"ChangeSignal": "",
|
||||
"Env": false,
|
||||
"File": false,
|
||||
"Filepath": "",
|
||||
"Name": "default",
|
||||
"ServiceName": "",
|
||||
"TTL": 0
|
||||
},
|
||||
"KillSignal": "",
|
||||
"KillTimeout": 10000000000,
|
||||
"Kind": "",
|
||||
"Leader": false,
|
||||
"Lifecycle": null,
|
||||
"LogConfig": {
|
||||
"Disabled": false,
|
||||
"MaxFileSizeMB": 15,
|
||||
"MaxFiles": 10
|
||||
},
|
||||
"Meta": null,
|
||||
"Name": "hass",
|
||||
"Resources": {
|
||||
"CPU": 256,
|
||||
"Cores": 0,
|
||||
"Devices": null,
|
||||
"DiskMB": 0,
|
||||
"IOPS": 0,
|
||||
"MemoryMB": 128,
|
||||
"MemoryMaxMB": 0,
|
||||
"NUMA": null,
|
||||
"Networks": null,
|
||||
"SecretsMB": 0
|
||||
},
|
||||
"RestartPolicy": {
|
||||
"Attempts": 99,
|
||||
"Delay": 10000000000,
|
||||
"Interval": 3600000000000,
|
||||
"Mode": "delay",
|
||||
"RenderTemplates": false
|
||||
},
|
||||
"ScalingPolicies": null,
|
||||
"Schedule": null,
|
||||
"Services": [
|
||||
{
|
||||
"Address": "",
|
||||
"AddressMode": "auto",
|
||||
"CanaryMeta": null,
|
||||
"CanaryTags": null,
|
||||
"Checks": null,
|
||||
"Cluster": "default",
|
||||
"Connect": null,
|
||||
"EnableTagOverride": false,
|
||||
"Identity": null,
|
||||
"Meta": null,
|
||||
"Name": "hass",
|
||||
"Namespace": "default",
|
||||
"OnUpdate": "require_healthy",
|
||||
"PortLabel": "http",
|
||||
"Provider": "consul",
|
||||
"TaggedAddresses": null,
|
||||
"Tags": [
|
||||
"global",
|
||||
"homeassistant",
|
||||
"tools",
|
||||
"logo=home-assistant"
|
||||
],
|
||||
"TaskName": "hass",
|
||||
"Weights": null
|
||||
}
|
||||
],
|
||||
"ShutdownDelay": 0,
|
||||
"Templates": [
|
||||
{
|
||||
"ChangeMode": "restart",
|
||||
"ChangeScript": null,
|
||||
"ChangeSignal": "",
|
||||
"DestPath": "local/configuration.yaml",
|
||||
"EmbeddedTmpl": "{{ key \"homeassistant/configuration.yml\" }}",
|
||||
"Envvars": false,
|
||||
"ErrMissingKey": false,
|
||||
"Gid": null,
|
||||
"LeftDelim": "{{",
|
||||
"Once": false,
|
||||
"Perms": "0644",
|
||||
"RightDelim": "}}",
|
||||
"SourcePath": "",
|
||||
"Splay": 5000000000,
|
||||
"Uid": null,
|
||||
"VaultGrace": 0,
|
||||
"Wait": null
|
||||
},
|
||||
{
|
||||
"ChangeMode": "restart",
|
||||
"ChangeScript": null,
|
||||
"ChangeSignal": "",
|
||||
"DestPath": "local/ui-lovelace.yaml",
|
||||
"EmbeddedTmpl": "{{ key \"homeassistant/lovelace.yml\" }}",
|
||||
"Envvars": false,
|
||||
"ErrMissingKey": false,
|
||||
"Gid": null,
|
||||
"LeftDelim": "{{",
|
||||
"Once": false,
|
||||
"Perms": "0644",
|
||||
"RightDelim": "}}",
|
||||
"SourcePath": "",
|
||||
"Splay": 5000000000,
|
||||
"Uid": null,
|
||||
"VaultGrace": 0,
|
||||
"Wait": null
|
||||
}
|
||||
],
|
||||
"User": "",
|
||||
"Vault": null,
|
||||
"VolumeMounts": null
|
||||
}
|
||||
],
|
||||
"Update": {
|
||||
"AutoPromote": false,
|
||||
"AutoRevert": false,
|
||||
"Canary": 0,
|
||||
"HealthCheck": "checks",
|
||||
"HealthyDeadline": 300000000000,
|
||||
"MaxParallel": 1,
|
||||
"MinHealthyTime": 10000000000,
|
||||
"ProgressDeadline": 600000000000,
|
||||
"Stagger": 10000000000
|
||||
},
|
||||
"Volumes": null
|
||||
}
|
||||
],
|
||||
"Type": "service",
|
||||
"UI": null,
|
||||
"Update": {
|
||||
"AutoPromote": false,
|
||||
"AutoRevert": false,
|
||||
"Canary": 0,
|
||||
"HealthCheck": "",
|
||||
"HealthyDeadline": 0,
|
||||
"MaxParallel": 1,
|
||||
"MinHealthyTime": 0,
|
||||
"ProgressDeadline": 0,
|
||||
"Stagger": 10000000000
|
||||
},
|
||||
"VaultNamespace": "",
|
||||
"Version": 8,
|
||||
"VersionTag": null
|
||||
}
|
||||
Reference in New Issue
Block a user