File tree Expand file tree Collapse file tree 5 files changed +13
-4
lines changed
roles/pulp_container_content/tasks Expand file tree Collapse file tree 5 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 1616 fail-fast : false
1717 matrix :
1818 pulp :
19- - " 3.16"
2019 - " 3.21"
20+ - " 3.45"
2121 steps :
2222 # Checks-out the repository under $GITHUB_WORKSPACE, so it's accessible to the job
2323 - uses : actions/checkout@v3
2727 - name : Install dependencies
2828 run : |
2929 python -m pip install --upgrade pip
30- pip install ansible==5.* jmespath
30+ pip install ansible==5.* jmespath pulp-glue==0.21.*
3131 ansible-galaxy collection install git+file://$(pwd)
3232
3333 - name : Run Pulp in one
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ namespace: stackhpc
22name : pulp
33description : >
44 Roles and plugins Pulp repository server configuration
5- version : " 0.5.4 "
5+ version : " 0.5.5 "
66readme : " README.md"
77authors :
88 - " Piotr Parczewski"
Original file line number Diff line number Diff line change 2020 - Whether to allow missing tags when state is present.
2121 type: bool
2222 default: false
23+ is_push:
24+ description:
25+ - Whether repository is a container-push repository.
26+ type: bool
27+ default: false
2328 src_repo:
2429 description:
2530 - Name of the repository to copy content from when state is present.
@@ -181,6 +186,8 @@ def read(self):
181186 self .get_content_units (self )
182187
183188 def process (self ):
189+ if self .module .params ["state" ] == "read" and self .module .params ["is_push" ]:
190+ self ._list_id = "repositories_container_container_push_list"
184191 # Populate self.entity.
185192 self .find (failsafe = False )
186193 if self .module .params ["state" ] == "present" :
@@ -198,6 +205,7 @@ def main():
198205 with PulpEntityAnsibleModule (
199206 argument_spec = dict (
200207 allow_missing = {"type" : "bool" , "default" : False },
208+ is_push = {"type" : "bool" , "default" : False },
201209 repository = {"required" : True },
202210 src_repo = {},
203211 src_is_push = {"type" : "bool" , "default" : False },
Original file line number Diff line number Diff line change 66 password : " {{ pulp_password }}"
77 validate_certs : " {{ pulp_validate_certs | bool }}"
88 allow_missing : " {{ item.allow_missing | default(omit) }}"
9+ is_push : " {{ item.is_push | default(omit) }}"
910 src_repo : " {{ item.src_repo | default(omit) }}"
1011 src_is_push : " {{ item.src_is_push | default(omit) }}"
1112 repository : " {{ item.repository }}"
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ set -o pipefail
88
99mkdir -p settings
1010
11- PULP_TAG=${PULP_TAG:- " 3.21 " }
11+ PULP_TAG=${PULP_TAG:- " 3.45 " }
1212
1313cat << EOF > settings/settings.py
1414CONTENT_ORIGIN='http://$( hostname) :8080'
You can’t perform that action at this time.
0 commit comments