随笔分类 - Jenkins+Ansible+Gitlab自动化部署三剑客
摘要:一、Jenkins Linux shell集成 新建任务 shell-freestyle-job,选择Freestyle project,点击【确定】 添加描述,This is my first shell job 添加执行shell,点击【保存】 脚本内容 #!/bin/sh us
阅读全文
摘要: 1.创建pipeline job任务,新建任务》输入任务名称》选择“流水线”》点击【确定】 添加描述,This is my first test pipeline job 添加 pipeline脚本,点击【保存】 脚本解释 1. 声明脚本,添加环境变量 2.添加选项
阅读全文
摘要:Jenkins job介绍 Jenkins Freestyle与Pipeline Job区别 Jenkins Job构建配置 一 、环境准备 1.配置Jenkins server本地Gitlab DNS 2.安装git client, curl工具依赖 3.关闭系统Git http.ss
阅读全文
摘要:什么是Jenkins Jenkins的优势和应用场景 Jenkins安装配置管理 安装Jenkins前的环境准备(Centos 7) 1.添加yum仓库源# wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redh
阅读全文
摘要:打开git bash 连接ansible服务器,然后进入deploy用户 #ssh root@192.168.96.188 进入python3.6虚拟环境 #su - deploy #source .py3-a2.5-env/bin/activate 加载ansible 2.5版本 #source
阅读全文
摘要:File模块 在目标主机创建文件或目录,并赋予其系统权限 - name: create a file file:'path=/oot/foo.txt state=touch mode=0755 owner=foo group=foo' Copy模块 实现Ansible服务端到目标主机的文件传送 -
阅读全文
摘要:进入到ansible和python环境 进入python3.6虚拟环境 #su - deploy #source .py3-a2.5-env/bin/activate 加载ansible 2.5版本 #source .py3-a2.5-env/ansible/hacking/env-setup -q
阅读全文
摘要:Test Playbooks框架 详细目录testenv文件 主任务文件main.yml 任务入口文件deploy.yml Ansible连接playbooks需要添加ssh协议认证 执行Playbooks
阅读全文
摘要:Ansible的两种安装模式(Centos7) 1.Yum包管理安装 #yum -y install ansible 2.Git源代码安装[推荐] git clone https://github.com/ansible/ansible.git 演示 新安装一个虚拟机,可以使用xshel
阅读全文
摘要: Ansible与Chef,Saltstack的不同 Ansible的优势和应用场景
阅读全文
摘要:创建开发仓库 打开git Bash,删除之前root管理创建的仓库目录 rm -rf admin-test 选择项目进行拷贝 克隆 # git -c http.sslVerify=false clone https://gitlab.example.com/root/admin-test.git
阅读全文
摘要: 查看linux系统信息 查看日志 创建账号 选择regular,这是一个普通账号,点击“create user”账号创建完成 点击“User”,然后点击“New user”。使用上面方法,再次创建账号 将账号添加到仓库中,先进入到仓库 点击“Manage access
阅读全文
摘要:◆安装Gitlab前系统预配置准备工作1.关闭firewalld防火墙# systemctl stop firewalld# systemctl disable firewalld 2.关闭SELINUX并重启系统 # vi /etc/selinux/config #:wqSEL INUX=disa
阅读全文
摘要:什么是GitLab ?◆GitLab是一个开源分布式版本控制系统◆开发语言: Ruby◆功能:管理项目源代码、版本控制、代码复用与查找GitLab与GitHub的不同 ◆ Github分布式在线代码托管仓库,个人版本可直接在线免费使用,企业版本收费且需要服务器安装◆Gitlab 分布式在线代码仓库托
阅读全文
浙公网安备 33010602011771号