일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- cephadm
- Octavia
- i3
- libvirt
- Kubeflow
- nfs-provisioner
- ubuntu
- golang
- Docker
- kolla-ansible
- pacman
- KVM
- k8s
- grafana-loki
- ceph-ansible
- Linux
- ceph
- Kubernetes
- cloud-init
- Arch
- awx
- Ansible
- yum
- repository
- port open
- OpenStack
- terraform
- archlinux
- HTML
- kolla
- Today
- Total
목록91.IaC (13)
YJWANG
NFS Server 구성 Playbook 해당 playbook을 실행하면 지정한 node의 /data를 export 합니다. 사용법 # ansible-playbook -i nfs_server.yaml Customization # path 및 line을 변경하여 권한과 directory를 변경하세요 - name: Create Exported Directory file: path: /data state: directory mode: '0777' lineinfile: path: /etc/exports line: '/data *(rw,no_root_squash,sync)' # hosts를 변경하여 다른 host에 실행하도록 하세요 hosts: master01결과 수행 결과 제일 아래..
Terraform_yjwang_libvirt ENV - CentOS Linux release 8.2.2004 (Core) / kernel-4.18.0-193.14.2.el8_2.x86_64 - libvirtd (libvirt) 4.5.0 - Terraform v0.13.5 + provider registry.terraform.io/dmacvicar/libvirt v0.6.2GIT https://github.com/YoungjuWang/iaac/1 node에서 virtual network를 생성 후 해당 network를 할당한 vm을 생성하는 terraform이다. 해당 문서는 terraform에 대한 기본적인 지식이 있다는 가정 하에 기술됐다. 각 terraform 파일은 컴포넌트로 모듈로 구성돼있으며 ..
12버전에서 하던 것과 동일하게 하면 provider를 인식하지 못하는 에러가 발생한다. tf 파일에서 아래와 같이 provider와 버전을 명시해줄 뿐만 아니라 plugin을 아래 경로에 위치시키도록 한다. [root@cloud-test-6 terraform_yjwang]# libvirtd --version libvirtd (libvirt) 4.5.0==> envs/yjwang_201117_16_54/main.tf
공식페이지_링크 ansible_port The ssh port number, if not 22 ansible_user The default ssh user name to use. ansible_ssh_pass The ssh password to use (never store this variable in plain text; always use a vault. See Variables and Vaults) ansible_ssh_private_key_file Private key file used by ssh. Useful if using multiple keys and you don’t want to use SSH agent. ansible_become Equivalent to ansible_sudo o..
파일 준비 [root@yjwang1102-deploy-1 pre-ansible]# cat inventory [ceph] ceph01 ansible_host=10.10.90.30 ceph02 ansible_host=10.10.90.31 ceph03 ansible_host=10.10.90.32 [root@yjwang1102-deploy-1 pre-ansible]# cat hosts.yml --- - name: gen etc hosts hosts: all tasks: - name: lineinfile lineinfile: path: /etc/hosts line: "{{ hostvars[item]['ansible_facts']['default_ipv4']['address'] }} {{ hostvars[item]..
github 개인 서버 환경이라 volume base 위치나 data_pool 이름이 다를 수 있다. 이는 개인 환경에 맞춰서 설정하시거나 변수로 지정하여서 사용하시면 좋을 것 같기에 드리는 참고용 링크이다. https://github.com/YoungjuWang/iaac/tree/master/yjwang_libvirt_tf사전 준비 우선 terraform 설치 및 libvirt plugin 설치는 아래 포스팅에서 참고하며 본 포스팅에서는 이 과정에 대해 설명하지 않는다. https://yjwang.tistory.com/15Terraform 작성 (basic) .tf 확장자로 파일을 생성하며 아래 링크에 example 들이 많기에 참고하여 작성하기에 어려움은 없었다. plugin 및 terraform 공..