pah-link-aap

pah-link-aap

AAPのプロジェクト同期先を、インターネットではなく厳選済みのPrivate Automation Hubのapprovedリポジトリへ切り替えます。

AIスキル大辞典による日本語要約
品質評価97/100評価確度:標準
人気度(GitHub Star) 16発掘スコア 100
01

このSkillでできること

  • ✓AAPのプロジェクト同期をPrivate Automation Hubのapprovedリポジトリへ向ける
  • ✓読み取りスコープのゲートウェイトークンを使ってGalaxy認証情報を作成する
  • ✓作成した認証情報をIT Service Automation組織に割り当てる
  • ✓実際のプロジェクト同期で接続を確認し、設定を元に戻す
02

使い方

01
STEP 1

Private Automation Hubのapprovedが populated・curated 済みであることを確認する

02
STEP 2

pah-link-aapを、AAPをPAHへ向ける目的で実行する

03
STEP 3

sandboxで先に検証し、approvedの不足が全プロジェクト同期やジョブテンプレートに影響し得ることを確認する

04
STEP 4

解除時はhub_galaxy_link_state=absentで反転を検証する

03

Skillのインストール

このGitHubリポジトリにあるSkillを確認し、現在の環境に適した方法でインストールしてください。
インストール後、正常に利用できることを確認し、基本的な使い方も簡潔に説明してください。

Repository:
https://github.com/ericcames/sales.demos
手動でインストールする

README / SKILL.mdから機械抽出できたコマンドのみ表示しています。推測したコマンドではありません。

ENV=${ENV:-sandbox}
./utilities/preflight.sh "$ENV"
HOST=$(grep -oP '(?<=^aap_hostname: ")[^"]+' inventory/group_vars/$ENV/connection.yml)
curl -sk --max-time 15 "https://$HOST/api/gateway/v1/ping/" \
| grep -q '"status":"good"' \
&& echo "✅ $ENV reachable ($HOST)" \
|| echo "❌ $ENV is not answering — check the environment is still alive"
python3 utilities/refresh-hub-requirements.py --write-approved
mkdir -p ~/ansible-logs
export ANSIBLE_LOG_PATH=~/ansible-logs/pah-link-sandbox-$(date +%F-%H%M).log
./utilities/run-ansible.sh playbooks/link_hub.yml -i inventory --limit sandbox \
-e target_env=sandbox \
--vault-id sales.demos@~/secrets/.vault_pass_sales_demos
HOST=$(grep -oP '(?<=^aap_hostname: ")[^"]+' inventory/group_vars/sandbox/connection.yml)
PW=$(ansible-vault view playbooks/group_vars/all/secrets.yml \
--vault-id sales.demos@~/secrets/.vault_pass_sales_demos \
| python3 -c 'import sys,yaml; print(yaml.safe_load(sys.stdin)["env_secrets"]["sandbox"]["aap_password"])')
curl -sk -u "admin:$PW" \
"https://$HOST/api/controller/v2/organizations/?name=IT%20Service%20Automation" \
| python3 -c 'import sys,json; print(json.load(sys.stdin)["results"][0]["related"]["galaxy_credentials"])'
curl -sk -u "admin:$PW" \
"https://$HOST/api/gateway/v1/tokens/?description=sales.demos%20PAH%20Galaxy%20(%2369)" \
| python3 -c 'import sys,json; print(json.load(sys.stdin)["count"], "token(s)")'
git clone https://github.com/ericcames/sales.demos.git
git clone https://github.com/ericcames/sales.demos-docs.git          # the words
git clone https://github.com/ericcames/image.builder.pipeline.git    # optional: the image factory — edge or golden-image work only
cd sales.demos
claude .
04

このSkillを使うプロンプト例

Skill名を明示すると、意図したSkillを使わせやすくなります。自動発動型では必須とは限りません。

AAPのプロジェクト同期を、厳選済みのPrivate Automation Hubのapprovedリポジトリへリンクしてください。まずsandboxで確認し、問題があれば元に戻せるようにしてください。
05

安全性チェック

自動解析による参考情報です。Skillの安全性を保証するものではありません。

外部API通信検出あり
Shellコマンド実行明確な記述なし
ファイル読み取り明確な記述なし
ファイル書き込み明確な記述なし
ネットワークアクセス検出あり
認証情報検出あり
検出根拠を見る
  • network: les-demos-ee-build." --- # pah-link-aap Closes [#69](https://github.com/ericcames/sales.demos/issues/69). The hub is populated by [`pah-sync`](../pah-s
  • network: ates a `Sales Demos - PAH Galaxy` credential aimed at `https:// /api/galaxy/content/approved/` and assigns it to the `IT Service Automation` organization
  • credential: ials the environment already holds, creates the Galaxy credential, assigns it to the organization, and proves it with a real project sync. Fully reversible
  • credential: nd what it risks Creates a `Sales Demos - PAH Galaxy` credential aimed at `https:// /api/galaxy/content/approved/` and assigns it to the `IT Service Autom
06

関連Skill