当时的项目用到了cloud-init 进行本机系统启动后的配置,替代之前Ansible的配置操作(也可以做ansible之前的一些更为基础的配置,比如设置network, SSH等),使其在boot后到达可用状态。其实和Ansible 一样都是configur ...
Ansible Galaxy Modules
最近在做项目的时候,发现用到了Ansible Galaxy上的模块,这里记录一下。 Web page ansible java role,对于安装不同的Java 版本非常方便。
Git Release Tag and Branch
Release Tag When to use tag: every time you push to production, tag the release. Release tag points to a specific commit in histor ...
Shell Pattern Matching
Parameter expansion 这是在script 中处理string, number 数据的常用方法. 可以用来代替sed, cut这些external programs, speed up significantly. As our experie ...
Zookeeper Quick Start
The Vagrant demo file please see my git repo Infratree Introduction Zookeeper quorum architecture, at least 3 nodes cluster setup ...
Golang OOP
Struct Go 用struct 实现OOP, 匿名字段可看作实现了继承关系,子类也可以重写父类的方法。 Note, there is also exported and unexported fields in struct, the same patte ...
Python3 Package
最近在做Project的时候发现一个package无法在jump box之外的机器上通过pip安装,后来发现这是一个内部开发的python package, 并且为jump box的pip做了设置,加入了内部的package repo address/cred ...
nc/netcat Command
I almost forget this command, but recently I used it as a TCP client to test Envoy TCP proxy. nc can also be a TCP server that lis ...
Design Document Layout
Reviewer Sheet Right after the title, list stakeholders in sheet: Username | Role | Status | Last Change | Reviewer ...