Skip to content

Machine ID and persistent logs #36

@techmunk

Description

@techmunk

Firstly, thanks for an awesome tool. I've started to create my own image builds and set of ansible scripts to manage my own servers using this. There's a couple items I feel could be addresses, or maybe documented?

Firstly, the machine-id /etc/machine-id should probably be removed from the image builds. I currently have a post_install extension that removes this from built images. rm -f "${workdir}/etc/machine-id"

/etc/machine-id should also be added to the default migrate files list so it persists across deployments.

After that, it's very easy to have a mount arkdep/shared/log, that is mounted via fstab onto /var/log so that the logs are persistent across deployments.

I currently have an extension on the target host that does this.

# Copy /var/log.
cp -a "$arkdep_dir/deployments/${data[0]}/rootfs/var/log"/* "$arkdep_dir/shared/log"

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions