Prv8 Shell
Server : Apache
System : Linux server.mata-lashes.com 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64
User : matalashes ( 1004)
PHP Version : 8.1.29
Disable Function : NONE
Directory :  /usr/src/cloud-init/doc/rtd/howto/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/src/cloud-init/doc/rtd/howto/module_run_frequency.rst
.. _module_frequency:

How to change a module's run frequency
**************************************

You may want to change the default frequency at which a module runs, for
example, to make the module run on every boot.

To override the default frequency, you will need to modify the module
list in :file:`/etc/cloud/cloud.cfg`:

1. Change the module from a string (default) to a list.
2. Set the first list item to the module name and the second item to the
   frequency.

Example
=======

The following example demonstrates how to log boot times to a file every boot.

Update :file:`/etc/cloud/cloud.cfg`:

.. code-block:: yaml
   :name: /etc/cloud/cloud.cfg
   :emphasize-lines: 3

        cloud_final_modules:
        # list shortened for brevity
         - [phone-home, always]
         - final-message
         - power-state-change

Then your user data could then be:

.. code-block:: yaml

        #cloud-config
        phone_home:
            url: http://example.com/$INSTANCE_ID/
            post: all

haha - 2025