IT

ALL IT Technology Information

Devops Tutorial for beginners

Devops Tutorial for beginners

DevOps is the combination of cultural philosophies, practices, and tools that increases an organization's ability to deliver applications and services at high velocity: evolving and improving products at a faster pace than organizations using traditional software development and infrastructure management processes.



1.Download chef old version working in this linux machine(G drive) = Click To Download

2.Download link 2ed = https://packages.chef.io/files/stable/chef-workstation/0.2.21/el/6/chef-workstation-0.2.21-1.el6.x86_64.rpm 






To download all ci cd jenkins download all software = CLICK 

8 comments:

  1. download docker file then install
    link :
    https://docs.docker.com/desktop/install/ubuntu/

    code #wget https://docs.docker.com/desktop/install/ubuntu/

    download next
    yum install docker
    ok

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. Download chef workstation
    #yum update -y
    # wget https://packages.chef.io/files/stable/chef-workstation/20.7.96/el/7/chef-workstation-20.7.96-1.el7.x86_64.rpm

    this packet download and install
    #yum install chef-workstation-20.7.96-1.el7.x86_64.rpm -y
    and install all packet and ok

    ReplyDelete
  4. ********CODE USED IN THE LAB******
    LINK TO DOWNLOAD CHEF-WORKSTATION
    https://packages.chef.io/files/stable...



    file '/myfile' do
    content 'Welcome to Devops'
    action :create
    end

    *********


    package 'tree' do
    action :install
    end

    file '/myfile2' do
    content 'This is My Second Project code'
    action :create
    owner 'root'
    group 'root'
    end

    *********
    package 'httpd' do
    action :install
    end

    file '/var/www/html/index.html' do
    content 'Welcome to Pradhyuman'
    action :create
    end


    service 'httpd' do
    action [:enable, :start]
    end

    *****************************************************

    ReplyDelete
  5. chef sit all tutorial in
    https://docs.chef.io/workstation/getting_started/

    ReplyDelete
  6. 19 L
    CODE USED IN THIS LAB****

    file '/basicinfo' do
    content "This is to get Attributes
    HOSTNAME: #{node['hostname']}
    IPADDRESS: #{node['ipaddress']}
    CPU: #{node['cpu']['0']['mhz']}
    MEMORY: #{node['memory']['total']}"
    owner 'root'
    group 'root'
    action :create
    end
    ***********************************************
    to information all pc hardware cpu, ram , ip Etc......

    ReplyDelete
  7. ansible devops
    (all node ip address informaction)

    ---
    - hosts: demo
    user: ansible
    become: yes
    connection: ssh
    gather_facts: yes

    ======================================================
    The following playbook defines a play targeting all hosts from a given inventory. It contains

    a single task to print a debug message.

    ---
    - hosts: all
    tasks:
    - name: Print message
    debug:
    msg: Hello Ansible World

    ==========================================================
    install in demo node all instal httpd service

    ---
    - hosts: demo
    user: ansible
    become: yes
    connection: ssh
    tasks:
    - name: install HTTPD on centos
    action: yum name=httpd state=installed
    =========================================
    install service using variables

    ---
    - hosts: demo
    user: ansible
    become: yes
    connection: ssh
    vars:
    pkgname: httpd
    tasks:
    - name: install httpd server
    action: yum name='{{pkgname}}' state=installed

    =====================================================
    handlers

    ---
    - hosts: demo
    user: ansible
    become: yes
    connection: ssh
    tasks:
    - name: install httpd server
    action: yum name=httpd state=installed
    notify: restart HTTPD
    handlers:
    - name: restart HTTPD
    action: service name=httpd state=restarted

    =========================================================


    loops you crete user all machine

    ---
    - hosts: demo
    user: ansible
    become: yes
    connection: ssh
    tasks:
    - name: add a list off user
    user: name='{{item}}' state=present
    with_items:
    - pradhyuman
    - ghodela
    - jay
    - mini

    ============================================


    use conditions vaults use commands you word to your machine debion or redhat to defrent

    command to use word your commands other vise skip your commands

    ---
    - hosts: demo
    user: ansible
    become: yes
    connection: ssh
    tasks:
    - name: install apche on debion
    command: apt-get -y install apache2
    when: ansible_os_family == "Debion"
    - name: install apache for redhat
    command: yum -y install httpd
    when: ansible_os_family == "RedHat"

    =======================================================
    to use other dir file access to work yout playbook
    to first go ~
    [ansible@loclhost ~]$
    mkdir -p playbook/roles/webserver/tasks
    216 tree
    217 cd playbook/
    218 touch roles/webserver/tasks/main.yml
    219 touch master.yml
    220 vim roles/webserver/tasks/main.yml
    i
    ===============i==================
    - name: install apache
    yum: pkg=httpd state=latest

    ================:wq=====================

    221 vim master.yml

    ======================i================
    ---
    - hosts: all
    user: ansible
    become: yes
    connection: ssh
    roles:
    - webserver
    ==================:wq================
    222 ansible-playbook master.yml

    >>to work your code httpd server install using defrent dir file

    ReplyDelete
  8. https://drive.google.com/file/d/1gcWlVscSq19ocOQiM__-eQU-4mtTw-AI/view?usp=sharing
    to download all ci cd jenkins download all software

    ReplyDelete