Add cdist "task" support #85
Labels
No labels
bugfix
cleanup
discussion
documentation
doing
done
feature
improvement
packaging
Stale
testing
TODO
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: ungleich-public/cdist#85
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Background: When using cdist intensively, often you'll yourself typing the same commands for some things.
For instance at ungleich I use frequently:
Instead of having to remember, I envision to port the old "cinv process" subcommand to cdist, but name it "task". This should work as follows:
we support having ~/.cdist/task.py (or in the -c directory)
This can define define classes or methods
Maybe inheriting from cdist.Task (?)
These classes/methods can simplify / abstract details as follows:
(A) cdist task addsshkey host1 host2
(B) cdist task configdns # no arguments
(C) cdist task configmx # no arguments
(D) cdist task set-timezone host1 host2 host3
Obviously if we have tasks, we also support listing them. For instance
unassigned @poljakowski
Examples to be implemented:
mentioned in merge request !830
assigned to @poljakowski and unassigned @ahmedbilal
"we" have init manifest per host, which has all the calls to types for configuring dns, setting timezone and... heh... disabling ipv6 :) etc.
i find this way more explicit and manifest is then kind of like documentation saying what has been done with host.
saying that, i'm not seeing any benefits having task command, because our process is different.
ymmv
changed the description
@nico That would ease a lot of pain