How do i create a chef data bag?



  • knife data bag man page: http://bit.ly/2ps8xjK

    Data bags are global variables that can be used in recipes.

    This creates a data bag called passwords, with the item id of samba, this opens up an editor to add your variables

    $ knife data bag create passwords samba
    Created data_bag[passwords]
    Created data_bag_item[samba]
    

    item id is a group of variables.

    Data bags can be encrypted and this one contains sensitive information it should be encrypted, as seen in another article.


Log in to reply
 

© Lightnetics 2024