본문 바로가기

IaC Application

(14)
vyos router 만들어서 통신 가능하도록 하고 ansible 가능하게 vyos 1.3.4 다운로드 모드변경 test interface 적용, 저장 추가 후 commit, save mobaxterm 접속 test team과 같이 하기 위해서 win10 구성 vyos@vyos-150# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.149.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2 192.168.150.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 200.200.200.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 [edit] vyo..
ansible Windows 2022 구성 PS C:\Users\Administrator> $env:computername JIWON-00 PS C:\Users\Administrator> Get-NetIPAddress IPAddress : ::1 InterfaceIndex : 1 InterfaceAlias : Loopback Pseudo-Interface 1 AddressFamily : IPv6 Type : Unicast PrefixLength : 128 PrefixOrigin : WellKnown SuffixOrigin : WellKnown AddressState : Preferred ValidLifetime : Infinite ([TimeSpan]::MaxValue) PreferredLifetime : Infinite ([Tim..
ansible playbook - copy , systemd , inline --copy [root@ansible-server ~]# echo ansible-test > /root/test.txt [root@ansible-server ~]# cat /root/test.txt ansible-test --hosts 파일 확인 [root@ansible-server ~]# vi /etc/ansible/hosts [rockylinux] 200.200.200.147 200.200.200.148 [nginx] 200.200.200.147 200.200.200.148 [root@ansible-server ~]# vi /root/ansible-playbook-test-02.yml --- - name: ansible-playbook-test-02 host..
ansible ad-hoc [root@ansible-server ~]# uptime 16:18:24 up 10 min, 2 users, load average: 0.05, 0.10, 0.08 [root@ansible-server ~]# ansible all -m shell -a "uptime" -k SSH password: 200.200.200.148 | CHANGED | rc=0 >> 16:18:59 up 11 min, 3 users, load average: 0.00, 0.03, 0.04 200.200.200.147 | CHANGED | rc=0 >> 16:18:59 up 2 min, 3 users, load average: 0.40, 0.47, 0.20 [root@ansible-server ~]# top [root@ansib..
2tier - service --1tier 실습 원복 [root@mariadbserver ~]# systemctl stop httpd.service [root@mariadbserver ~]# systemctl stop php-fpm.service [root@mariadbserver ~]# dnf -y remove httpd [root@mariadbserver ~]# dnf -y remove php-fpm [root@was ~]# dnf -y install httpd [root@was ~]# dnf -y install httpd php-fpm php-mysqlnd [root@was ~]# vi /etc/php-fpm.d/www.conf 392 security.limit_extensions = .php .php3 .php4 .php5 ..
1tier-service web + was + db가 1개의 서버에 같이 있음 --mariadb server 구성 --database WebTest MariaDB [(none)]> show databases; +--------------------+ | Database | +--------------------+ | WebTest | | information_schema | | mysql | | performance_schema | +--------------------+ 4 rows in set (0.002 sec) MariaDB [(none)]> use WebTest; Reading table information for completion of table and column names You can turn off this..
DBMS 실습 --mariadb server [root@realserver-02 ~]# dnf -y install mariadb*​ --cli 원복 systemctl set-default graphical.target -- version 확인 [root@realserver-02 ~]# mysql -v Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 3 Server version: 10.5.22-MariaDB MariaDB Server Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. Reading history-file /root/.my..
haproxy.service 원복 --director [root@localhost ~]# ipvsadm -C [root@localhost ~]# ipvsadm -L IP Virtual Server version 1.2.1 (size=4096) Prot LocalAddress:Port Scheduler Flags -> RemoteAddress:Port Forward Weight ActiveConn InActConn [root@localhost ~]# dnf -y remove ipvsadm [root@localhost ~]# sysctl -p net.ipv4.ip_forward = 1 [root@localhost ~]# dnf -y install haproxy [root@localhost ~]# ifconfig ens160:1 172...