Update a FreeIPA recipe

You can attach or detach recipes to/from existing FreeIPA clusters in an available state. Using this capability, you can update a recipe by removing it from the cluster, replacing the old recipe with a modified recipe of the same type, and attaching the new modified recipe to the cluster.

Attaching or detaching a recipe will not execute the recipe. The next execution of the recipe will take place based on the type of the recipe. After an upscale, a newly attached recipe runs only on the new hosts.

Required role (one of the following):
  • PowerUser on CDP tenant
  • Owner of the environment
  • EnvironmentAdmin

Steps

  1. Create a new recipe (with updated/modified content) of the same type as the old recipe that you want to replace.
  2. In the Management Console, select Environments from the left pane and click on your environment. Next, click on FreeIPA tab and then on the Recipes tab.
  3. Find the recipe that you want to remove in the list of recipes for the FreeIPA.
  4. Click Remove Recipe next to the name of the recipe that you want to remove, then click Yes in the confirmation window.
  5. Once you have removed the old recipe, click on the Add Recipe button for the FreeIPA. Then select the name of the new recipe that contains the modified content and click Add.
  1. Create a new recipe (with updated/modified content) of the same type as the old recipe that you want to replace.
  2. You can use the CDP CLI to detach and attach recipes from a FreeIPA cluster:
    cdp environments detach-free-ipa-recipes
    --environment <value>
    --recipes <value>
    
    cdp environments attach-free-ipa-recipes
    --environment <value>
    --recipes <value>

Result: You should see the new recipe appear for the same host group. After this change, the next recipe execution will execute the new script.