목록분류 전체보기 (1395)
변군이글루(Mirror)

terraform provider 생성 ~/.aws/credentials 확인 $ vim ~/.aws/credentials [terraformA] aws_access_key_id = AWSACCESSKEYID aws_secret_access_key = AWSSECRETACCESSKEY ~/.aws/config 확인 $ vim ~/.aws/config [terraformA] region = us-east-1 디렉토리 생성 $ mkdir -p terraformA/aws/serviceA/us-east-1 aws provider provider.tf 파일 생성 $ vim provider.tf terraform { required_providers { aws = { source = "hashicorp/aws" v..

테라폼(Terraform) CLI를 설치하는 방법 테스트 환경 $ lsb_release -d Description:Ubuntu 22.04.2 LTS 테라폼 다운로드 공식 테라폼 웹사이트(https://www.terraform.io/downloads.html)에서 운영체제에 맞는 바이너리 파일을 다운로드합니다. 테라폼은 Windows, macOS, Linux 등 다양한 운영체제를 지원하므로 해당하는 바이너리 파일을 선택합니다. 테라폼(Terraform) 설치 테라폼 저장소 추가 wget -q -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg echo..

ansible-config 명령 ansible-config -h $ ansible-config -h usage: ansible-config [-h] [--version] [-v] {list,dump,view,init} ... View ansible configuration. positional arguments: {list,dump,view,init} list Print all config options dump Dump configuration view View configuration file init Create initial configuration optional arguments: --version show program's version number, config file location, ..

ansible-doc 명령 ansible-doc -h $ ansible-doc -h usage: ansible-doc [-h] [--version] [-v] [-M MODULE_PATH] [--playbook-dir BASEDIR] [-t {become,cache,callback,cliconf,connection,httpapi,inventory,lookup,netconf,shell,vars,module,strategy,role,keyword}] [-j] [-r ROLES_PATH] [-e ENTRY_POINT | -s | -F | -l | --metadata-dump] [plugin [plugin ...]] plugin documentation tool positional arguments: plugin..

앤서블 인벤토리 앤서블 버전 정보 ansible --version $ ansible --version ansible [core 2.12.8] config file = /etc/ansible/ansible.cfg configured module search path = ['/home/vagrant/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3/dist-packages/ansible ansible collection location = /home/vagrant/.ansible/collections:/usr/share/ansible/collections..

ansible-vault 명령 ansible-vault create a.yaml ansible-vault view a.yaml $ ansible-vault view a.yaml Vault password: --- - hosts: node1 tasks: - ping: ansible-vault edit a.yaml $ ansible-vault edit a.yaml Vault password: --- - hosts: node1 tasks: - ping: ansible-playbook a.yaml -i ../inventory.ini --ask-vault-pass $ ansible-playbook a.yaml -i ../inventory.ini --ask-vault-pass Vault password: PLAY ..

ansible-galaxy 명령어 ansible-galaxy 명령어는 Ansible Galaxy와 관련된 작업을 수행하는 데 사용됩니다. 주요 기능으로는 역할(Role)의 설치, 제거, 초기화, 업데이트 등이 있습니다. ansible-galaxy : https://galaxy.ansible.com/ Ansible Galaxy 설치 sudo apt-get install ansible-galaxy 1. 역할 설치하기 Ansible Galaxy에서 지정한 username과 role_name에 해당하는 역할을 설치합니다. ansible-galaxy install username.role_name 2. 역할 제거하기 지정된 역할을 제거합니다. ansible-galaxy remove username.role_nam..