> Is it possible, using puppet, to configure an EC2 instance so that > when it boots it attaches & mounts an EBS volume? If so, what steps > would one take to achieve this?
The mounting should normally be done by your os - ie. put the entry in /etc/fstab. However - puppet can manage the /etc/fstab file with the 'mount' resource if you wanted: http://docs.puppetlabs.com/references/stable/type.html#mount But - I'm guessing your problem is that you don't want to re-create your EBS/AMI image every time you change /etc/fstab right? If you didn't want to save the entry in fstab and do the whole 'snapshot' image thing (to persist your /etc/fstab entry in your EBS/ AMI image) you could have puppet always start at bootup and let puppet do the mounting. Puppet will mount the file-system at any time quite happily in this regard. Just need to make sure that your ensure line is 'mounted'. For example: mount {"/mnt/point": device => "/dev/sdc1", ensure => "mounted", ... } Just make sure you getting your ordering right - as most people would be used to mounts appearing quite early in any boot sequence ... if you manage your service starts in puppet as well, you can let puppet do the ordering for you. ken. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.