Changeset - 2f65aa1f3f81
[Not reviewed]
0 1 0
Branko Majic (branko) - 4 years ago 2020-10-01 22:47:50
branko@majic.rs
MAR-155: Update usage instructions to cover the ansible_key now being mandatory in the preseed role.
1 file changed with 15 insertions and 1 deletions:
0 comments (0 inline, 0 general)
docs/usage.rst
Show inline comments
 
@@ -335,7 +335,15 @@ So, let's set this up for start:
 
        roles:
 
          - preseed
 

	
 
2. Configure the role by creating the configuration file:
 
2. Now we need to configure the role. Two parameters are mandatory -
 
   one that specifies where the preseed files are to be stored, and
 
   one that specifies the public key that should be used to
 
   pre-populate the SSH authorized keys for the ``root`` account. This
 
   is required for the initial bootstrap of servers because Debian
 
   GNU/Linux does not by default allow the ``root`` user to
 
   authenticate via SSH using a password. We will use the SSH public
 
   key generated earlier via the ``ssh-keygen`` command. Create the
 
   configuration file:
 

	
 
   :file:`~/mysite/group_vars/preseed.yml`
 

	
 
@@ -343,6 +351,9 @@ So, let's set this up for start:
 

	
 
      ---
 

	
 
      # Public key used to authenticate remote logins via SSH for the
 
      # root account.
 
      ansible_key: "{{ lookup('file', '~/.ssh/id_rsa.pub') }}"
 
      # Directory where the preseed files will be output to.
 
      preseed_directory: "~/mysite/preseed_files/"
 

	
 
@@ -368,6 +379,9 @@ So, let's set this up for start:
 

	
 
      ---
 

	
 
      # Public key used to authenticate remote logins via SSH for the
 
      # root account.
 
      ansible_key: "{{ lookup('file', '~/.ssh/id_rsa.pub') }}"
 
      # Directory where the preseed files will be output to.
 
      preseed_directory: "~/mysite/preseed_files/"
 
      # Set your default (initial) root password.
0 comments (0 inline, 0 general)