Skip to content

Remove instructions to place GCE key in /etc/foreman #3841

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
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
26 changes: 3 additions & 23 deletions guides/common/modules/proc_adding-a-google-gce-connection.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -24,34 +24,14 @@ For more information, see https://cloud.google.com/iam/docs/creating-managing-se
+
[options="nowrap", subs="+quotes,verbatim,attributes"]
----
# scp _My_GCE_Key_.json root@{foreman-example-com}:/etc/foreman/_My_GCE_Key_.json
# scp _My_GCE_Key_.json root@{foreman-example-com}:_My_GCE_Key_.json
----
. On {ProjectServer}, change the owner for your service account key to the `foreman` user:
+
[options="nowrap", subs="+quotes,verbatim,attributes"]
----
# chown root:foreman /etc/foreman/_My_GCE_Key_.json
----
. On {ProjectServer}, configure permissions for your service account key to ensure that the file is readable:
+
[options="nowrap", subs="+quotes,verbatim,attributes"]
----
# chmod 0640 /etc/foreman/_My_GCE_Key_.json
----
ifndef::foreman-deb[]
. On {ProjectServer}, restore SELinux context for your service account key:
+
[options="nowrap", subs="+quotes,verbatim,attributes"]
----
# restorecon -vv /etc/foreman/_My_GCE_Key_.json
----
endif::[]
. Use the `hammer compute-resource create` command to add a GCE compute resource to {Project}:
+
[options="nowrap" subs="+quotes"]
----
$ hammer compute-resource create \
--key-path "/etc/foreman/_My_GCE_Key_.json" \
# hammer compute-resource create \
--key-path "_My_GCE_Key_.json" \
--name "_My_GCE_Compute_Resource_" \
--provider "gce" \
--zone "_My_Zone_"
Expand Down
Loading