Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use git instead of rsync for the Gentoo overlay #106

Merged
merged 23 commits into from
Jun 21, 2021
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
1bbe56f
add step that changes gentoo overlay from using rsync to git
bedroge Jun 7, 2021
a1c3182
add step for generating post-sync hooks
bedroge Jun 9, 2021
6f2ff40
extra step for creating postsync dir
bedroge Jun 9, 2021
bf7c37c
rename step
bedroge Jun 9, 2021
66482ca
add mode for template task
bedroge Jun 9, 2021
fd52eb7
also generate metadata for custom overlays
bedroge Jun 9, 2021
d98d6ed
add postsync scripts
bedroge Jun 9, 2021
e433003
add other script, which we won't use for now
bedroge Jun 9, 2021
2f1b85e
dont run sync_gentoo_projects_xml for now
bedroge Jun 9, 2021
c88d68a
use copy instead of template for post-sync scripts
bedroge Jun 10, 2021
e2e694e
use portageq to find EPREFIX, remove .j2 extensions
bedroge Jun 10, 2021
c01cf2d
add reframe test for validating that gentoo overlay uses git
bedroge Jun 11, 2021
7a08570
fix hardcoded path
bedroge Jun 11, 2021
6fa0aff
Merge branch 'main' into gentoo_git
bedroge Jun 19, 2021
0e64d56
remove old versions of scripts in template dir
bedroge Jun 20, 2021
2c5b58f
remove commented sync_gentoo_project_xml
bedroge Jun 20, 2021
2c1a333
Add a system update step for existing Prefix
bedroge Jun 21, 2021
397ac8d
remove trailing spaces
bedroge Jun 21, 2021
9db7b4b
remove wrong 'not' operator
bedroge Jun 21, 2021
973081f
update world instead of system
bedroge Jun 21, 2021
3044dff
verbose output for ansible-playbook
bedroge Jun 21, 2021
cdeb9e7
Update of system set should go after the sync...
bedroge Jun 21, 2021
254a1b8
update world instead of system
bedroge Jun 21, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions ansible/playbooks/roles/compatibility_layer/tasks/add_overlay.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,28 @@
selectattr('eclass-overrides', 'equalto', True) | map(attribute='name') | join(' ')
}}

- name: Use git instead of rsync for the Gentoo overlay
copy:
dest: "{{ gentoo_prefix_path }}/etc/portage/repos.conf/gentoo.conf"
mode: "0644"
content: |
[DEFAULT]
main-repo = gentoo
sync-git-pull-extra-opts = --quiet

[gentoo]
priority = 1
location = {{ gentoo_prefix_path }}/var/db/repos/gentoo
sync-uri = https://github.com/gentoo/gentoo.git
bedroge marked this conversation as resolved.
Show resolved Hide resolved
sync-type = git
auto-sync = Yes
clone-depth = 1

- name: Remove the old contents of the Gentoo overlay
file:
state: absent
path: "{{ gentoo_prefix_path }}/var/db/repos/gentoo"

- name: Sync the repositories
portage:
sync: 'yes'
Expand Down