Skip to content
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

Automate ownCloud update #28

Closed
ypid opened this issue Nov 26, 2015 · 6 comments
Closed

Automate ownCloud update #28

ypid opened this issue Nov 26, 2015 · 6 comments

Comments

@ypid
Copy link
Member

ypid commented Nov 26, 2015

Not sure if this is a planned feature for the ownCloud packages which we use. We could automate this by a dpkg hook. Any ideas?

@drybjed
Copy link
Member

drybjed commented Nov 26, 2015

On DebOps-managed hosts, unattended-upgrades is configured by debops.apt role. If ownCloud is installed using a .deb package, you should at least get e-mails informing you about possible upgrades.

One of the things i would like to do in the future is split debops.apt into smaller roles, then a role that manages the updates could be used to configure automatic upgrade of specific packages. Unless that could be done now via conf.d/ style directory somewhere, not sure.

One thing I would be wary of is changes to the ownCloud configuration on a package update, any possibility that Ansible-managed configuration is overwritten this way?

@ypid
Copy link
Member Author

ypid commented Nov 26, 2015

One thing I would be wary of is changes to the ownCloud configuration on a package update, any possibility that Ansible-managed configuration is overwritten this way?

The update writes the version into the config.php other DebOps specific ownCloud configs are not touched. I have /var/www/owncloud/config under version control 😉

I think it would be possible to do the db upgrade in a file under /etc/apt/apt.conf.d. etckeeper also hooks into this mechanism. I might look into this.

@Gomez
Copy link
Contributor

Gomez commented Dec 2, 2015

What will happen if a new package (8.1.5) appear here (?):

http://download.opensuse.org/repositories/isv:/ownCloud:/community:/8.1/Debian_8.0/

Admin will get a email with information, or will unattended-upgrades update and ownCloud stuck in maintenance because the db upgrade is missing.

@ypid
Copy link
Member Author

ypid commented Jun 13, 2016

unattended-upgrades is not configured to do this automatically yet. The problem is that as of ownCloud 9.0.2, the db upgrade still needs to happen manually. This is on my TODO list to be automated as said above.

@ypid ypid mentioned this issue Jul 5, 2016
2 tasks
@ypid ypid self-assigned this Jul 9, 2016
ypid added a commit to ypid/ansible-owncloud that referenced this issue Jul 9, 2016
@ypid
Copy link
Member Author

ypid commented Jul 26, 2016

Implemented by: #44 in case anyone wants to test it before #44 is merged.

@ypid
Copy link
Member Author

ypid commented Jul 28, 2016

I did some more testing of this feature implemented by #44 and it is working great so far with my test instances and I will continue to test this. However, I will not enable this as role default until my confidence in this feature grows a bit more because the upstream package maintainers had trouble with this in the past and disabled it.

If I don’t find further problems, I intend to reenable it for v0.3.0.

ypid added a commit to ypid/ansible-owncloud that referenced this issue Jul 28, 2016
@ypid ypid added this to the v0.4.0 milestone Aug 3, 2016
@ypid ypid changed the title Automate ownCloud update. Automate ownCloud update Aug 8, 2016
ypid added a commit to ypid/ansible-owncloud that referenced this issue Aug 9, 2016
@ypid ypid closed this as completed in 0a0270b Aug 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants