Last active
January 3, 2017 00:51
-
-
Save gsmurali/80dbad99e2d331bdbcbd09508116daa3 to your computer and use it in GitHub Desktop.
01 Linux Academy - Certified Chef Developer Basic Chef Fluency Badge- Lecture: Setting up the Lab environment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Configure user 'user' for sudo access and change root password and user password | |
* use passwd command to change passwords for user and root | |
Add user 'user' to sudo | |
* usermod -g wheel user | |
Download chef development kit | |
* go to https://downloads.chef.io/chefdk/1.1.16 and copy url for RHEL - https://packages.chef.io/files/stable/chefdk/1.1.16/el/7/chefdk-1.1.16-1.el7.x86_64.rpm | |
wget the above link in the server to download the software | |
Install using the command - sudo rpm -ivh chefdk-1.1.16-1.el7.x86_64.rpm | |
To verify installation, type 'sudo chef-client --local-mode' (running chef-client in local mode) | |
#Terminal log: | |
Windows PowerShell | |
Copyright (C) 2016 Microsoft Corporation. All rights reserved. | |
Enter passphrase for /c/Users/shinidharan/.ssh/id_rsa: | |
C:\Users\shinidharan\Documents\GitHub> ssh | |
usage: ssh [-1246AaCfGgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec] | |
[-D [bind_address:]port] [-E log_file] [-e escape_char] | |
[-F configfile] [-I pkcs11] [-i identity_file] | |
[-L address] [-l login_name] [-m mac_spec] | |
[-O ctl_cmd] [-o option] [-p port] | |
[-Q cipher | cipher-auth | mac | kex | key] | |
[-R address] [-S ctl_path] [-W host:port] | |
[-w local_tun[:remote_tun]] [user@]hostname [command] | |
C:\Users\shinidharan\Documents\GitHub> ssh [email protected] | |
Warning: Permanently added '54.90.221.178' (ECDSA) to the list of known hosts. | |
[email protected]'s password: | |
Last login: Tue Jan 3 00:35:34 2017 from c-76-104-43-10.hsd1.va.comcast.net | |
[user@gsmurali1 ~]$ ls | |
chefdk-1.1.16-1.el7.x86_64.rpm Desktop VNCHOWTO xrdp-chansrv.log | |
[user@gsmurali1 ~]$ wget https://packages.chef.io/files/stable/chefdk/1.1.16/el/7/chefdk-1.1.16-1.el7.x86_64.rpm | |
--2017-01-03 00:38:53-- https://packages.chef.io/files/stable/chefdk/1.1.16/el/7/chefdk-1.1.16-1.el7.x86_64.rpm | |
Resolving packages.chef.io (packages.chef.io)... 151.101.32.65 | |
Connecting to packages.chef.io (packages.chef.io)|151.101.32.65|:443... connected. | |
HTTP request sent, awaiting response... 200 OK | |
Length: 107390653 (102M) [application/x-rpm] | |
Saving to: ‘chefdk-1.1.16-1.el7.x86_64.rpm.1’ | |
100%[==============================================================================>] 107,390,653 95.6MB/s in 1.1s | |
2017-01-03 00:38:54 (95.6 MB/s) - ‘chefdk-1.1.16-1.el7.x86_64.rpm.1’ saved [107390653/107390653] | |
[user@gsmurali1 ~]$ ll | |
total 209760 | |
-rw-rw-r--. 1 user user 107390653 Dec 15 02:44 chefdk-1.1.16-1.el7.x86_64.rpm | |
-rw-r--r--. 1 user wheel 107390653 Dec 15 02:44 chefdk-1.1.16-1.el7.x86_64.rpm.1 | |
drwxr-xr-x. 2 user wheel 6 Jan 7 2015 Desktop | |
-rw-rw-r--. 1 user wheel 431 Aug 6 2015 VNCHOWTO | |
-rw-------. 1 user wheel 68 Mar 18 2016 xrdp-chansrv.log | |
[user@gsmurali1 ~]$ rm chefdk-1.1.16-1.el7.x86_64.rpm.1 | |
[user@gsmurali1 ~]$ ll | |
total 104884 | |
-rw-rw-r--. 1 user user 107390653 Dec 15 02:44 chefdk-1.1.16-1.el7.x86_64.rpm | |
drwxr-xr-x. 2 user wheel 6 Jan 7 2015 Desktop | |
-rw-rw-r--. 1 user wheel 431 Aug 6 2015 VNCHOWTO | |
-rw-------. 1 user wheel 68 Mar 18 2016 xrdp-chansrv.log | |
[user@gsmurali1 ~]$ sudo rpm -ivh chefdk-1.1.16-1.el7.x86_64.rpm | |
[sudo] password for user: | |
warning: chefdk-1.1.16-1.el7.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 83ef826a: NOKEY | |
Preparing... ################################# [100%] | |
Updating / installing... | |
1:chefdk-1.1.16-1.el7 ################################# [100%] | |
Thank you for installing Chef Development Kit! | |
[user@gsmurali1 ~]$ sudo chef-client --local-mode | |
[sudo] password for user: | |
[2017-01-03T00:46:32+00:00] WARN: No config file found or specified on command line, using command line options. | |
[2017-01-03T00:46:32+00:00] WARN: No cookbooks directory found at or above current directory. Assuming /home/user. | |
Starting Chef Client, version 12.17.44 | |
resolving cookbooks for run list: [] | |
Synchronizing Cookbooks: | |
Installing Cookbook Gems: | |
Compiling Cookbooks... | |
[2017-01-03T00:46:43+00:00] WARN: Node gsmurali1.mylabserver.com has an empty run list. | |
Converging 0 resources | |
Running handlers: | |
Running handlers complete | |
Chef Client finished, 0/0 resources updated in 09 seconds | |
[user@gsmurali1 ~]$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment