summaryrefslogtreecommitdiff
path: root/cloudinit/stages.py
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit/stages.py')
-rw-r--r--cloudinit/stages.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/cloudinit/stages.py b/cloudinit/stages.py
index b1a6bc49..3f17294b 100644
--- a/cloudinit/stages.py
+++ b/cloudinit/stages.py
@@ -21,12 +21,16 @@ from cloudinit.handlers.boot_hook import BootHookPartHandler
from cloudinit.handlers.cloud_config import CloudConfigPartHandler
from cloudinit.handlers.jinja_template import JinjaTemplatePartHandler
from cloudinit.handlers.shell_script import ShellScriptPartHandler
+from cloudinit.handlers.shell_script_by_frequency import (
+ ShellScriptByFreqPartHandler,
+)
from cloudinit.handlers.upstart_job import UpstartJobPartHandler
from cloudinit.net import cmdline
from cloudinit.reporting import events
from cloudinit.settings import (
CLOUD_CONFIG,
FREQUENCIES,
+ PER_ALWAYS,
PER_INSTANCE,
PER_ONCE,
RUN_CLOUD_CONFIG,
@@ -519,6 +523,9 @@ class Init(object):
def_handlers = [
cloudconfig_handler,
shellscript_handler,
+ ShellScriptByFreqPartHandler(PER_ALWAYS, **opts),
+ ShellScriptByFreqPartHandler(PER_INSTANCE, **opts),
+ ShellScriptByFreqPartHandler(PER_ONCE, **opts),
BootHookPartHandler(**opts),
UpstartJobPartHandler(**opts),
]