I am attempting to add some ansible roles to the fedora-server module in pagure.
I am attempting to follow the instructions found at https://docs.pagure.org/pagure/usage/forks.html
I successfully used the pagure web ui to fork fedora-server to jwhimpel/fedora-server.
I then wanted to execute the git clone ssh:....... command shown, but do not know which path I should be using following the git@pagure.io in the command.
Any ideas would be greatly appreciated.
* John W. Himpel [30/07/2024 15:32] :
I then wanted to execute the git clone ssh:....... command shown, but do not know which path I should be using following the git@pagure.io in the command.
I believe you should fire off the command: git clone https://pagure.io/forks/jwhimpel/fedora-server.git
Emmanuel
On Wed, 2024-07-31 at 01:58 +0200, Emmanuel Seyman wrote:
- John W. Himpel [30/07/2024 15:32] :
I then wanted to execute the git clone ssh:....... command shown, but do not know which path I should be using following the git@pagure.io in the command.
I believe you should fire off the command: git clone https://pagure.io/forks/jwhimpel/fedora-server.git
Emmanuel
Thanks!!
That allowed for the checkout to work properly. I created the ansible files under the "fedora-ansible" directory. I then git add and commit for my new ansible roles.
When I enter "git push -u origin "InitialCommit" https://pagure.io/forks/jwhimpel/fedora-server.git then enter my userid and password, I get remote: Authorization Required fatal: Authentication failed for 'https://pagure.io/forks/jwhimpel/fedora-server.git/'
Any suggestions?
* John W. Himpel [30/07/2024 19:27] :
When I enter "git push -u origin "InitialCommit" https://pagure.io/forks/jwhimpel/fedora-server.git then enter my userid and password,
You need to use an API key to commit to git.
* Go to https://pagure.io/settings#nav-api-tab * Click on "Create new API key". * On that page, make sure "Commit to a git repository via http(s)" is checked. * Click on create. * You'll be able to use that API key to commit to the repository.
Emmanuel
On Wed, Jul 31, 2024 at 07:59:20AM GMT, Emmanuel Seyman wrote:
- John W. Himpel [30/07/2024 19:27] :
When I enter "git push -u origin "InitialCommit" https://pagure.io/forks/jwhimpel/fedora-server.git then enter my userid and password,
You need to use an API key to commit to git.
- Go to https://pagure.io/settings#nav-api-tab
- Click on "Create new API key".
- On that page, make sure "Commit to a git repository via http(s)"
is checked.
- Click on create.
- You'll be able to use that API key to commit to the repository.
Or you can use ssh, clone with:
ssh://git@pagure.io/forks/jwhimpel/fedora-server.git
and then use your ssh key to pull/push.
kevin
Am 31.07.2024 um 07:59 schrieb Emmanuel Seyman emmanuel@seyman.fr:
- John W. Himpel [30/07/2024 19:27] :
When I enter "git push -u origin "InitialCommit" https://pagure.io/forks/jwhimpel/fedora-server.git then enter my userid and password,
You need to use an API key to commit to git.
- Go to https://pagure.io/settings#nav-api-tab
- Click on "Create new API key".
- On that page, make sure "Commit to a git repository via http(s)"
is checked.
- Click on create.
- You'll be able to use that API key to commit to the repository.
In my experience the easiest way is to use the ssh variant. If I remember correctly, the system automatically uses the public key of your FAS account.
And probably you can use the procedures as described for our documentation articles:
https://fedoraproject.org/wiki/Server/Documentation/How_To_Contribute
https://docs.fedoraproject.org/en-US/server-working-group/usr-docs-maintenan...
And as a WG member you can either push to your fork and then initiate a Pull Request, or you can directly push to the main repository.
And we should also agree whether we first save the Ansible scripts in the stg branch or directly in main. The documentation is currently only in stg. Maybe it is easier to put Ansible scripts in this branch for the first development time. Then we would have both in the same branch and could access everything at the same time.
-- Peter Boy https://fedoraproject.org/wiki/User:Pboy PBoy@fedoraproject.org
Timezone: CET (UTC+1) / CEST (UTC+2)
Fedora Server Edition Working Group member Fedora Docs team contributor and board member Java developer and enthusiast
server@lists.fedoraproject.org