전체 글225 [Windows] Install-Module PSWindowsUpdate 설치 에러 문제점 파워쉘로 윈도우 업데이트를 제어하기 위해 Install-Module PSWindowsUpdate 수행하였을 경우 아래와 같이 에러가 발생함 WARNING: Unable to download from URI 'https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x409' to ''. WARNING: Unable to download the list of available providers. Check your internet connection. PackageManagement\Install-PackageProvider : No match was found for the specified search criteria for the provider 'NuG.. 2022. 7. 5. [ansible] disk mount, /etc/fstab 등록 playbook yml 젠킨스 빌드 실행 시 아래와 같이 구동하도록 했다. 1. 젠킨스에서 빌드 파라매터로 마운트 디스크와 마운트 디렉터리 경로를 받는다. 2. yml파일내 loop 매개변수를 쉘 스크립트로 삽입 3. ansible 플레이북을 수행하도록한다. 4. 수행 완료되면 yml파일 내 loop 매개변수를 제거한다. 아래 코드는 2번에서의 실행 쉘 스크립트이다. #!/bin/bash mount_list=/data/ansible/file/mount_list job_cnt=`cat $mount_list | wc -l` for ((var=1 ; var 2022. 7. 1. [Ansible] 파일 암호화 하기 vault 비밀번호와 같은 민감한 정보가 있을 때 파일 암호화를 시켜 ansible 구동시에만 복호화 시켜 사용할 수 있음 ## yml 암호화 하기 ansible-vault encrypt ./linux_test.yml New Vault password: Confirm New Vault password: Encryption successful ##yml 복호화 하기 ansible-vault decrpt ./linux_test.yml #암호화 된 yml 실행하기 ansible-playbook --ask-vault-pass linux_test.yml 아래와 같이 암호화가 되어 알아볼 수가 없음 2022. 6. 30. [Jenkins] 젠킨스 로그인 없이 대시보드 들어가기 처리방법 /var/lib/jenkins/config.xml에서 아래 설정을 true에서 false로 변경후 systemctl restart jenkins false 젠킨스 서비스 가 재시작 되면서 위 코드내역이 다시 true로 변경됨 그러면서 젠킨스 관리 > Configgure Global Security이 다음과 같이 설정된다. 원상복구 시키려면 아래 내역을 다시 변경해줘야한다. Allow anonymous read access를 체크해제 해줘야 로그인 페이지가 뜬다. 그렇지 않으면 로그인하지 않은 사용자도 젠킨스 메인페이지 접근이 가능하다. 2022. 6. 29. [Ansible] Distribution Ubuntu 18.04 on host x.x.x.x should use /usr/bin/python3, but is using /usr/bin/python for backward compatibility with prior Ansible releases 앤서블 수행시 작업은 success로 뜨지만 중간에 다음과 같은 에러발생으로 실패한 것 같은 착각을 주게됨 내용을 읽어보면 pytnon3.7이 있지만 호환성때문에 /usr/bin/python (2.7)를 사용중이라는 걸 알리는 경고문이다. [DEPRECATION WARNING]: Distribution Ubuntu 18.04 on host x.x.x.x should use /usr/bin/python3, but is using /usr/bin/python for backward compatibility with prior Ansible releases. A future Ansible release will default to using the discovered platform python for thi.. 2022. 6. 29. [Jenkins] 오래된 빌드 기록 삭제하기(삭제 로테이션) 빌드기록을 정리하지 않으면 성능이슈 발생가능성 있음 아래와 같이 빌드 기록을 정리 할 수 있음 설정방법 젠킨스 관리> 플러그인 관리 > Discard Old plugin 설치 각 프로젝트 설정 > 빌드후 조치 > discard old builds status to discard 체크박스 항목은 빌드기간이 지나도 유지할 항목임 2022. 6. 29. [Jenkins] jenkins job config history 관리(젠킨스 로그 관리) jenkins의 config 설정을 바꾼 이력에 대한 관리 필요 플러그인 중 job config history라는 것이 있음 export를 할 수 있는지는 찾아봐야 함 설치 방법 jenkins 관리 > plugin 관리 > job configuration history plugin 설치 history 로그 로테이션 젠킨스관리 > 환경설정 > Job config history 고급버튼 클릭 2022. 6. 24. [Jenkins] 젠킨스 프로젝트 이름 변경 project name change 젠킨스 프로젝트 이름 변경이 안되는줄 알았는데... 가능했다. 방법은 아래와 같다. 프로젝트 이름 변경 방법 프로젝트 이름 옆 역삼각형 클릭 > rename 2022. 6. 24. [Jenkins] jenkins vulnerability 플러그인 취약점 업그레이드 젠킨스 로그인 후 오른쪽 상단에 보면 상당히 거슬리게 뭐가 와있다. 번역기를 돌려보면 플러그인 취약점이 있다는 소리다. Warnings have been published for the following currently installed components: Jenkins 2.332.3 core and libraries Multiple security vulnerabilities in Jenkins 2.355 and earlier, LTS 2.332.3 and earlier Pipeline: Groovy 2689.v434009a_31b_f1 Sandbox bypass vulnerability through implicitly allowlisted platform Groovy files Git plugi.. 2022. 6. 24. [쉘 스크립트] [ [[ 차이점 대괄호 1개와 2개의 차이점 어쩌다 생긴 의문 쉘 스크립트 [ [[ 차이점 쉘 스트립트 이중 대괄호 단일 대괄호 쉘스크립트에서 많이 쓰는 if문.. 일반적으로 if [ ] 로 대괄호 1개를 써왔다. 어쩌다가 변수의 값이 포함된 내용중 xxx 문자가 포함되면 참이라는 구문을 만들어야해서 구글에 검색해봤는데 아래와 같이 표기 하더라 #!/bin/bash str='This is the shell script example.' if [[ "$str" == *shell* ]]; then echo "It contains 'shell'" fi 대괄호가 두개인 것이다. 한개로는 안될까? #!/bin/bash str='This is the shell script example.' if [ "$str" = *shell* ]; then echo "It.. 2022. 6. 22. 이전 1 ··· 12 13 14 15 16 17 18 ··· 23 다음 반응형