Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kasra Jamshidi
slapos.package
Commits
43c06caa
Commit
43c06caa
authored
May 19, 2016
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playbook: etckeeper wip
parent
4a9bbff3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
64 additions
and
0 deletions
+64
-0
playbook/roles/etckeeper/tasks/main.yml
playbook/roles/etckeeper/tasks/main.yml
+64
-0
No files found.
playbook/roles/etckeeper/tasks/main.yml
0 → 100644
View file @
43c06caa
---
-
stat
:
path=/etc/etckeeper/etckeeper.conf
register
:
etckeeper_configuration
-
stat
:
path:/etc/.gitignore
register
:
gitignore_file
-
name
:
Install git
apt
:
name=git state=latest update_cache=no
when
:
ansible_os_family == "Debian"
-
name
:
Install git
yum
:
name=git state=latest update_cache=no
when
:
ansible_os_family == "RedHat"
-
name
:
Install etckeeper
apt
:
name=etckeeper state=latest update_cache=no
when
:
ansible_os_family == "Debian"
-
name
:
Install etckeeper
yum
:
name=etckeeper state=latest update_cache=no
when
:
ansible_os_family == "RedHat"
-
shell
:
etckeeper uninit
args
:
chdir
:
/etc
-
shell
:
etckeeper init
args
:
chdir
:
/etc
# invoke git checkout -b `hostname ` or `COMP-XXX` for initial registration.
-
lineinfile
:
path=/etc/.gitignore line={{ item }}
with_items
:
-
~*
-
shadow*
-
passwd*
-
groups*
-
re6stnet/ca.crt
-
re6stnet/cert.crt
-
re6stnet/cert.key
-
opt/slapos/ssl
# Get this configuration from /etc/opt/vifib-etckeeper-email
-
shell
:
git config user.email
args
:
chdir
:
/etc
# Get this configuration from /etc/opt/vifib-etckeeper-name
-
shell
:
git config user.name
args
:
chdir
:
/etc
-
shell
:
git checkout -b `???`
-
shell
:
git commit -a -m "Initial Commit"
# get URL of repos at a local file on /etc/opt/vifib-etckeeper-repository instead
-
shell
:
git remote add origin
# edit /etc/etckeeper/
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment