File: userdata_setup.yaml

package info (click to toggle)
ceph 10.2.11-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 84,660 kB
  • sloc: cpp: 851,974; ansic: 54,245; python: 45,589; sh: 30,008; java: 20,516; asm: 10,148; perl: 8,435; makefile: 5,956; php: 909
file content (25 lines) | stat: -rw-r--r-- 528 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#cloud-config-archive

- type: text/cloud-config
  content: |
    output:
      all: '| tee -a /var/log/cloud-init-output.log'

# allow passwordless access for debugging
- |
  #!/bin/bash
  exec passwd -d ubuntu

- |
  #!/bin/bash

  # mount a NFS share for storing logs
  apt-get update
  apt-get -y install nfs-common
  mkdir /mnt/log
  # 10.0.2.2 is the host
  mount -v -t nfs -o proto=tcp 10.0.2.2:{mnt_dir} /mnt/log

  # mount the iso image that has the test script
  mkdir /mnt/cdrom
  mount -t auto /dev/cdrom /mnt/cdrom