1
0
mirror of https://github.com/rancher/os.git synced 2025-04-27 19:15:23 +00:00
Commit Graph

337 Commits

Author SHA1 Message Date
etrexel
67599f352c Added cloudinitsave case for proxmox 2019-12-20 09:42:27 +08:00
etrexel
8ad6b10446 Initial cloud-init support for ProxmoxVE 2019-12-20 09:42:27 +08:00
niusmallnan
29aaadd88c Make loading service retries configurable 2019-12-19 16:06:23 +08:00
Pierre-Emmanuel Jacquier
ce9d497890 Fix exoscale race condition
Signed-off-by: Pierre-Emmanuel Jacquier <pierre-emmanuel.jacquier@exoscale.ch>
2019-09-18 11:36:21 +08:00
Pierre-Emmanuel Jacquier
869559924b Add Exoscale provider for Cloudinit (#2891)
Signed-off-by: Pierre-Emmanuel Jacquier <pierre-emmanuel.jacquier@epitech.eu>
2019-09-12 09:19:16 +08:00
Benjamin S. Allen
bfa2592538 Support More Complex Cmdline Configuration
Fixes #2755. Allows for quoted arguments with spaces in the kernel cmdline to be parsed properly.

An example command line:

```
$ cat /proc/cmdline
earlyprintk=serial console=ttyS0 rancher.autologin=ttyS0 rancher.defaults.hostname=ros-vm1 rancher.defaults.network.dns.nameservers=[192.168.64.1] rancher.network.interfaces.eth0.dhcp=true rancher.network.interfaces.eth1.dhcp=false rancher.network.interfaces.eth1.address=192.168.99.11/24 rancher.state.dev=LABEL=RANCHER_STATE rancher.state.autoformat=[/dev/vda] rancher.state.formatzero cc.ssh_authorized_keys=['ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBOz8mD0tRrNsHBLHD5jVgmXO26JA7eKFZrj4Ic9KR2y3qXlxU9JCYYn/qDyTCmExt8Rw6SaU/BvgU7WT3Bjsi6c=','ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJj5mkpBHBBAW5XClcB5aFTWph+VCL7I0W8gm93AT5w4','ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDKfb0O2qXgIgrtD5Mj7fBYdg4jMrT7wetBbkG2e4maDsRR3AtSYjEB3NeEifM8gdvIf0gYs1BNB/Ar76agaQGeqW+Ewb2LWdypr4Ipw09yWCrC9ttVbCnHuzVLYjML0CNgpjIRC+FC5r1X1gm2LufRN4orZ1NQvNhRRWJVT37vRtHo79TecK0DKQmy87Zpj3cNiI/5iObnTk56pZWpIAEiC5hEVkcVxmdkLJs3YonWVZzmK/Y8uvFtF+GhA6Jcpc38zDQHKsOjFWvj3qbWtVEQteNDxsM2pNeXY5wdrhRn4YSdKme9Cm7CdAogIdAdPtqPIfq/jY0QczS12qFZH7zt']
```

Results in:

```
$ sudo ros config export
rancher:
  defaults:
    hostname: ros-vm1
    network:
      dns:
        nameservers:
        - 192.168.64.1
  environment:
    EXTRA_CMDLINE: /init AAAAC3NzaC1lZDI1NTE5AAAAIJj5mkpBHBBAW5XClcB5aFTWph+VCL7I0W8gm93AT5w4','ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDKfb0O2qXgIgrtD5Mj7fBYdg4jMrT7wetBbkG2e4maDsRR3AtSYjEB3NeEifM8gdvIf0gYs1BNB/Ar76agaQGeqW+Ewb2LWdypr4Ipw09yWCrC9ttVbCnHuzVLYjML0CNgpjIRC+FC5r1X1gm2LufRN4orZ1NQvNhRRWJVT37vRtHo79TecK0DKQmy87Zpj3cNiI/5iObnTk56pZWpIAEiC5hEVkcVxmdkLJs3YonWVZzmK/Y8uvFtF+GhA6Jcpc38zDQHKsOjFWvj3qbWtVEQteNDxsM2pNeXY5wdrhRn4YSdKme9Cm7CdAogIdAdPtqPIfq/jY0QczS12qFZH7zt']
  network:
    interfaces:
      eth0:
        dhcp: true
      eth1:
        address: 192.168.99.11/24
        dhcp: false
  state:
    autoformat:
    - /dev/vda
    dev: LABEL=RANCHER_STATE
    formatzero: true
ssh_authorized_keys:
- ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBOz8mD0tRrNsHBLHD5jVgmXO26JA7eKFZrj4Ic9KR2y3qXlxU9JCYYn/qDyTCmExt8Rw6SaU/BvgU7WT3Bjsi6c=
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJj5mkpBHBBAW5XClcB5aFTWph+VCL7I0W8gm93AT5w4
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDKfb0O2qXgIgrtD5Mj7fBYdg4jMrT7wetBbkG2e4maDsRR3AtSYjEB3NeEifM8gdvIf0gYs1BNB/Ar76agaQGeqW+Ewb2LWdypr4Ipw09yWCrC9ttVbCnHuzVLYjML0CNgpjIRC+FC5r1X1gm2LufRN4orZ1NQvNhRRWJVT37vRtHo79TecK0DKQmy87Zpj3cNiI/5iObnTk56pZWpIAEiC5hEVkcVxmdkLJs3YonWVZzmK/Y8uvFtF+GhA6Jcpc38zDQHKsOjFWvj3qbWtVEQteNDxsM2pNeXY5wdrhRn4YSdKme9Cm7CdAogIdAdPtqPIfq/jY0QczS12qFZH7zt
```
2019-08-30 07:10:55 +08:00
niusmallnan
3fac5f7604 Adjust log output 2019-08-17 12:05:10 +08:00
niusmallnan
8d7f7199c9 Fix logs output of the tftp datasource 2019-05-28 14:28:24 +08:00
niusmallnan
679fc1a208 Autoload the predefined user images 2019-05-16 10:04:20 +02:00
Jason-ZW
2faa916c2e Add azure cloud-init 2019-05-08 11:52:47 +02:00
Morten Møller Riis
66c5f6130a Added tftp datasource for cloud config. 2019-03-25 11:21:04 +08:00
Jason-ZW
788e9dc39a Add config validation when reboot & shutdown 2019-03-18 15:16:53 +08:00
Jason-ZW
edf913012d Embed subscriber service 2019-02-09 17:33:47 +08:00
niusmallnan
cd19f55edb Fix ineffassign issues reported by goreportcard 2019-01-26 10:52:33 +08:00
niusmallnan
f90ddbc76d Fix go_vet issues reported by goreportcard 2019-01-26 10:42:58 +08:00
niusmallnan
36064ca496 Fix typos report by goreportcard 2019-01-26 10:38:35 +08:00
niusmallnan
b3f74b31a9
Merge pull request #2614 from Jason-ZW/add-azure-image
Add azure support
2018-12-28 14:53:38 +08:00
niusmallnan
7a0d3a8fa2 Support instance/attributes/block-project-ssh-keys for gce metadata 2018-12-27 14:32:09 +08:00
niusmallnan
4cab9c9caf Fix typos for getting gcp metadata SSHKeys
https://cloud.google.com/compute/docs/storing-retrieving-metadata
2018-12-27 14:32:09 +08:00
Jason-ZW
03c090ed86 Remove waagent datasource
use os-services waagent instead
2018-12-26 14:16:10 +08:00
niusmallnan
4e0269e9d8
Merge pull request #2490 from kinolaev/master
Support vSphere network protocol profiles
2018-12-19 14:53:03 +08:00
niusmallnan
1b15e7ae36 Move multiple user-docker images to rancher/os-dind 2018-12-13 10:51:49 +08:00
niusmallnan
733c2f0667
Merge pull request #2595 from Jason-ZW/add-4glte-support
Add 4glte support
2018-12-12 13:32:22 +08:00
Jason-ZW
ef792df107 Add 4glte build script 2018-12-12 13:27:36 +08:00
Jason-ZW
99118f5fad Add 4glte support 2018-12-12 11:28:45 +08:00
niusmallnan
fe17440898
Merge pull request #2545 from bernard-wagner/lvm-crypt
Added LVM and LUKS
2018-12-11 13:52:08 +08:00
Jason-ZW
4cb0f462bd Add wifi support 2018-11-07 17:11:03 +08:00
Bernard Wagner
900c57b8c9 Added LVM and LUKS 2018-10-31 15:36:59 +02:00
Jason-ZW
44388ae853 Add virtio-rng-pci params 2018-10-29 14:08:47 +08:00
niusmallnan
823ae28a52 Imports are organized in groups, with blank lines between them
https://github.com/golang/go/wiki/CodeReviewComments#imports
2018-10-23 13:11:31 +08:00
Jason-ZW
ef663b4e70 Add dhcp timeout parameter 2018-10-23 09:47:43 +08:00
Jason-ZW
a088811de9 Remove useless field 2018-10-23 09:47:43 +08:00
Jason-ZW
e8b6c69fbf ignore vmware datasource when guestinfo is empty 2018-10-16 16:25:35 +08:00
niusmallnan
667b3f0b3c Make the logs path of system-docker configurable 2018-10-11 10:25:30 +08:00
niusmallnan
eeebf0ae0f Mount the boot partition when booting
Also update StateDir and OemDir for better clarity
2018-09-30 15:09:51 +08:00
Sergej Nikolaev
7d66bd5c41 ovfenv: always fallback to reading variables from vm params 2018-09-26 12:27:44 +03:00
Sergej Nikolaev
693f9fc108 support guestinfo interface.<n>.ip.<m>.netmask, dns.servers, dns.domains 2018-09-26 12:26:57 +03:00
Darren Shepherd
1f50386828 Move around code for better clarity 2018-09-19 17:18:49 +08:00
niusmallnan
d7f47925a1 Start rngd before format the disk 2018-09-14 16:48:54 +08:00
Jan B
e5b1643bfa Optimize image loading to reduce memory footprint and boot time 2018-09-11 07:18:43 +08:00
Jason-ZW
4634759449 Support ebs nvme blocks 2018-09-04 11:27:32 +08:00
niusmallnan
f2b09794e4 Fix error format in cloudinit 2018-07-30 17:40:58 +08:00
Jason-ZW
0821c9a4ea Add multi docker command 2018-07-10 14:16:59 +08:00
stffabi
05c2a40aa5 Decompress user-data if it is gzipped
Fixes #2391
2018-06-26 23:01:01 +08:00
niusmallnan
3669df9599 Get rid of docker-sys bridge setting by CNI 2018-05-11 15:10:15 +08:00
wchao1241
a9eb57759c Add export filter of additional property 2018-05-09 12:54:01 +08:00
niusmallnan
ba388b6bc6 Build docker-sys bridge via system-docker args and remove cni-glue 2018-04-16 08:22:55 +00:00
niusmallnan
b4cd6af468 Update all go files mode 2018-04-16 11:30:08 +08:00
stffabi
ccc330a43e add cloud-init support for cloudstack 2018-04-13 09:42:19 +02:00
Jason-ZW
80c99642b2 enhance preload timing issue 2018-04-02 05:31:14 +00:00