control-center
所属分类:操作系统开发
开发工具:Shell
文件大小:0KB
下载次数:0
上传日期:2023-10-13 02:54:58
上 传 者:
sh-1993
说明: 操作系统、配置和身份管理的控制中心,
(control center for operating system, configuration, and identity management,)
文件列表:
LICENSE (173, 2023-12-06)
WTFPL.txt (483, 2023-12-06)
ansible/ (0, 2023-12-06)
bin/ (0, 2023-12-06)
bin/fix-remotes (686, 2023-12-06)
bin/generate-host (15121, 2023-12-06)
certificate-authority/ (0, 2023-12-06)
dicelessware/ (0, 2023-12-06)
git-automation/ (0, 2023-12-06)
os-deployment/ (0, 2023-12-06)
This repo is how I run operations on my home network. It consists of several
subprojects:
* *ansible* - This is where most of the action happens. Each role has a subproject. (Sub-sub-project.)
* *certificate-authority* - Tools for being a CA, operational state of my own CA, and signed certificates for my hosts.
* *os-deployment* - Tools to apply operating system images to boot media.
* *git-automation* - A tool to manage git operations.
# Collaboration
To get the whole collection, do this:
git clone --recurse-submodules https://github.com/abugher/control-center.git
There are also several untracked subdirectories, named starting with
"sensitive-", as reflected by *.gitignore* . Some code may not work unless
those are populated.
If the *sensitive\_\** subdirectories are git repositories with upstream
repositories set (hopefully not public), *g* will recurse through those as
well.
If you have write access and wish to push changes, fix the remote push URL's
with this:
./bin/fix-remotes
To sync changes up and down, try this:
PATH=./git-automation g
If you want to fork the whole set ... good luck. You probably need to edit
.gitmodules, ansible/.gitmodules, and bin/fix\_remotes to reflect your own
namespace, then run ./bin/fix\_remotes . That may still fail unless you also add
some lines to ./bin/fix\_remotes to create the repo in your namespace before
attempting a pull. github provides a tool called "hub" which may help with
that. ( https://github.com/github/hub ) gitlab makes that part easier,
allowing you to create a new repo by pushing to it. (
https://docs.gitlab.com/ee/user/project/working_with_projects.html )
# Usage
Most of the content is in the subprojects. There is one high level script to
generate configuration for and deploy a new host:
./bin/generate-host
This will do things like assign a unique IP address, generate host
certificates, add the host to a few groups, and deploy all assigned roles to
the host. OS installation is not included. (See *os\_deployment* for that.)
If the host is already a member of the groups corresponding to its intended
purpose, this script should perform a complete bring-up.
近期下载者:
相关文件:
收藏者: