fabianoflorentino / swiss-army-knife

Arsenal of tools for building infrastructure

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Swiss Army Knife

Infrastructure

  • Deploy
    Creates the infrastructure on vmware environment with terraform

    • Usage:

      To creates the infrastructure you can use:

      cd ./infrastructure/deploy
      cp -rf ./sample <YOUR MODULE>
      cp -rf ./modules/sample ./modules/<YOUR MODULE>
      
      export TF_VAR_provider_address=1.2.3.4
      export TF_VAR_provider_user=username
      export TF_VAR_provider_password=password

      modules.tf

      vim ./<YOUR MODULE>/modules.tf
      module "<YOUR MODULE>" {
      source = "./modules/<YOUR MODULE>"
      
      vm_count      = "1"
      name_new_vm   = "sample-node"
      num_cpus      = "1"
      num_mem       = "512"
      size_disk     = "70"
      
      }
      terraform init
      terraform plan -out "<YOUR MODULE>.tfplan"
      terraform apply "<YOUR MODULE>.tfplan"
          ```
      
  • Configure
    Configure the virtual machines with roles of ansible tool

    • Usage:
      Configuration management of servers.

      cd ./infrastructure/configure
      cp -rf ./inventories/sample ./invetories/<YOU INVENTORY>

      Edit:

      Ex.

      all:
          vars:
          hosts:
              host-1:
              ansible_host: 1.2.3.4
          children:
              servers:
              hosts:
                  host-1:
      cd ./configure
      ansible-playbook -i ./invetories/<YOUR INVENTORY> -u <YOUR FOR ANSIBLE> -k servers.yml
      Flags: Description
      -i Set the inventory for execute playbook
      -u User for execute ansible
      -k Password for user to execute ansible

      More info on documentation ansible-playbook.

Services

The services to configure on your new vmware infrastructure

About

Arsenal of tools for building infrastructure


Languages

Language:Jinja 88.0%Language:HCL 7.5%Language:Dockerfile 1.6%Language:Shell 1.5%Language:Makefile 1.4%