OpenSCAP / openscap-daemon

Manages continuous scans of your infrastructure
https://www.open-scap.org/tools/openscap-daemon
GNU Lesser General Public License v2.1
106 stars 32 forks source link

oscapd-cli to support changing task properties #16

Closed mpreisler closed 9 years ago

mpreisler commented 9 years ago

There are dbus calls to change task properties but they are not exposed in oscapd-cli. Changing task properties is pretty important because it's rare that users get all settings right the first time.

I propose: oscapd-cli task X set-title "something" but I am open to suggestions.

These are the dbus methods:

    def SetTaskTitle(self, task_id, title):
    def SetTaskEnabled(self, task_id, enabled):
    def SetTaskTarget(self, task_id, target):
    def SetTaskInput(self, task_id, input_):
    def SetTaskTailoring(self, task_id, tailoring):
    def SetTaskProfileID(self, task_id, profile_id):
    def SetTaskOnlineRemediation(self, task_id, online_remediation):
    def SetTaskScheduleNotBefore(self, task_id, schedule_not_before_str):
    def SetTaskScheduleRepeatAfter(self, task_id, schedule_repeat_after):

There definitely are some missing and some of them lack getters. This issue should also track clean-up of that.

This will most likely grow oscapd-cli to a big size, we should think about refactoring it. Maybe moving some of the functionality into a module inside the openscap_daemon package.

mpreisler commented 9 years ago

This has been fixed in #23