How do i bootstrap a chef node using knife?



  • # knife bootstrap 10.50.20.5 -x trainer -N sector12 --sudo
    Creating new client for sector12
    Creating new node for sector12
    Connecting to 10.50.20.5
    [email protected]'s password:
    10.50.20.5 knife sudo password: 
    Enter your password: 
    10.50.20.5 
    10.50.20.5 -----> Existing Chef installation detected
    10.50.20.5 Starting the first Chef Client run...
    10.50.20.5 Starting Chef Client, version 13.0.118
    10.50.20.5 resolving cookbooks for run list: []
    10.50.20.5 Synchronizing Cookbooks:
    10.50.20.5 Installing Cookbook Gems:
    10.50.20.5 Compiling Cookbooks...
    10.50.20.5 [2017-04-26T11:02:40+01:00] WARN: Node sector12 has an empty run list.
    10.50.20.5 Converging 0 resources
    10.50.20.5 
    10.50.20.5 Running handlers:
    10.50.20.5 Running handlers complete
    10.50.20.5 Chef Client finished, 0/0 resources updated in 01 seconds
    

    Check the node has been created.

    $ knife client list
    panfried-validator
    sector12
    

Log in to reply
 

© Lightnetics 2024