mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-18 21:11:08 +02:00
Build app-emulation/amazon-ssm-agent with EC2 AMI images
- Add Dependency - Add ignition configuration to create systemd units and SSM config
This commit is contained in:
parent
985a767e7f
commit
d766dab629
@ -7,6 +7,31 @@
|
||||
{
|
||||
"name": "coreos-metadata-sshkeys@.service",
|
||||
"enabled": true
|
||||
},
|
||||
{
|
||||
"name": "amazon-ssm-agent.service",
|
||||
"enabled": true,
|
||||
"contents": "[Unit]\nDescription=amazon-ssm-agent\nAfter=network-online.target\n\n[Service]\nType=simple\nWorkingDirectory=/usr/share/oem\nExecStart=/usr/share/oem/amazon-ssm-agent\nKillMode=process\nRestart=on-failure\nRestartForceExitStatus=SIGPIPE\nRestartSec=15min\n\n[Install]\nWantedBy=multi-user.target\n"
|
||||
}
|
||||
]
|
||||
},
|
||||
"storage": {
|
||||
"files": [
|
||||
{
|
||||
"filesystem": "root",
|
||||
"path": "/etc/amazon/ssm/amazon-ssm-agent.json",
|
||||
"contents": {
|
||||
"source": "oem:///ssm/amazon-ssm-agent.json.template"
|
||||
},
|
||||
"mode": 292
|
||||
},
|
||||
{
|
||||
"filesystem": "root",
|
||||
"path": "/etc/amazon/ssm/seelog.xml",
|
||||
"contents": {
|
||||
"source": "oem:///ssm/seelog.xml.template"
|
||||
},
|
||||
"mode": 292
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -13,6 +13,10 @@ KEYWORDS="amd64 arm64 x86"
|
||||
IUSE="ec2 openstack brightbox"
|
||||
REQUIRED_USE="^^ ( ec2 openstack brightbox )"
|
||||
|
||||
RDEPEND="
|
||||
app-emulation/amazon-ssm-agent
|
||||
"
|
||||
|
||||
# no source directory
|
||||
S="${WORKDIR}"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user