Set up poudriere to build pkgbase.
This commit is contained in:
@@ -717,7 +717,7 @@
|
||||
#Server = https://mirrors.42tm.tech/archlinux/$repo/os/$arch
|
||||
#Server = http://f.archlinuxvn.org/archlinux/$repo/os/$arch
|
||||
#Server = http://mirror.bizflycloud.vn/archlinux/$repo/os/$arch
|
||||
Server = https://arch.mirror.constant.com/$repo/os/$arch
|
||||
#Server = https://arch.mirror.constant.com/$repo/os/$arch
|
||||
Server = https://iad.mirrors.misaka.one/archlinux/$repo/os/$arch
|
||||
Server = https://forksystems.mm.fcix.net/archlinux/$repo/os/$arch
|
||||
Server = https://mirrors.mit.edu/archlinux/$repo/os/$arch
|
||||
|
||||
@@ -3,12 +3,3 @@
|
||||
|
||||
- import_tasks: tasks/linux.yaml
|
||||
when: 'os_flavor == "linux"'
|
||||
|
||||
- include_tasks:
|
||||
file: tasks/peruser.yaml
|
||||
apply:
|
||||
become: yes
|
||||
become_user: "{{ initialize_user }}"
|
||||
loop: "{{ users | dict2items | community.general.json_query('[?value.initialize==`true`].key') }}"
|
||||
loop_control:
|
||||
loop_var: initialize_user
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
loop:
|
||||
- /usr/local/etc/pkg
|
||||
- /usr/local/etc/pkg/repos
|
||||
|
||||
|
||||
- name: Install packages
|
||||
package:
|
||||
name:
|
||||
@@ -65,6 +65,16 @@
|
||||
loop:
|
||||
- { src: custom.conf.j2, dest: /usr/local/etc/pkg/repos/custom.conf }
|
||||
|
||||
- name: Install Configuration
|
||||
when: pkgbase_url is defined
|
||||
template:
|
||||
src: "{{ item.src }}"
|
||||
dest: "{{ item.dest }}"
|
||||
owner: root
|
||||
group: wheel
|
||||
mode: 0644
|
||||
loop:
|
||||
- { src: pkgbase.conf.j2, dest: /usr/local/etc/pkg/repos/pkgbase.conf }
|
||||
# - name: Replace all packages with packages from new repo
|
||||
# command: pkg upgrade -f -y
|
||||
# when: changed_config.changed
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
- include_role:
|
||||
name: per_user
|
||||
|
||||
# - name: Create directories
|
||||
# file:
|
||||
# name: "{{ account_homedir.stdout }}/{{ item }}"
|
||||
# state: directory
|
||||
# mode: 0700
|
||||
# owner: "{{ account_name.stdout }}"
|
||||
# group: "{{ group_name.stdout }}"
|
||||
# loop:
|
||||
# - ".config/foo"
|
||||
|
||||
# - name: Copy files
|
||||
# copy:
|
||||
# src: "files/{{ item.src }}"
|
||||
# dest: "{{ account_homedir.stdout }}/{{ item.dest }}"
|
||||
# mode: 0600
|
||||
# owner: "{{ account_name.stdout }}"
|
||||
# group: "{{ group_name.stdout }}"
|
||||
# loop:
|
||||
# - src: foo.conf
|
||||
# dest: .config/foo/foo.conf
|
||||
|
||||
- import_tasks: tasks/peruser_freebsd.yaml
|
||||
when: 'os_flavor == "freebsd"'
|
||||
|
||||
- import_tasks: tasks/peruser_linux.yaml
|
||||
when: 'os_flavor == "linux"'
|
||||
17
ansible/roles/package_manager/templates/pkgbase.conf.j2
Normal file
17
ansible/roles/package_manager/templates/pkgbase.conf.j2
Normal file
@@ -0,0 +1,17 @@
|
||||
base: {
|
||||
# url: "file:///usr/local/poudriere/data/images/currentznver4-repo/FreeBSD:15:amd64/latest"
|
||||
# url: "file:///update"
|
||||
# url: "https://freebsdpkg.fizz.buzz/pkgbase/currentznver4-repo/FreeBSD:15:amd64/latest",
|
||||
url: "{{ pkgbase_url }}",
|
||||
mirror_type: "none",
|
||||
enabled: yes,
|
||||
# signature_type: "pubkey",
|
||||
# pubkey: "/usr/local/etc/pkg/poudriere.pub",
|
||||
priority: 100
|
||||
}
|
||||
# poudriere jail -c -j current -v main -a amd64 -m git -D -U https://git.FreeBSD.org/src.git -K GENERIC-NODEBUG -B -b
|
||||
# env ABI=FreeBSD:15:amd64 pkg update -f -r base
|
||||
# env ABI=FreeBSD:15:amd64 pkg install -r base -g 'FreeBSD-*'
|
||||
|
||||
# for f in /etc/master.passwd /etc/group /etc/sysctl.conf /etc/ssh/sshd_config; do cp -v "$f.pkgsave" "$f"; done
|
||||
# pwd_mkdb -p /etc/master.passwd
|
||||
Reference in New Issue
Block a user