summaryrefslogtreecommitdiffstats
path: root/configuration/debian
AgeCommit message (Collapse)Author
2022-08-22Replace scripts commands for the cross-Unix system compatibilityKrzysztof Piotrowski
Signed-off-by: Krzysztof Piotrowski <krzysztof.piotrowski@inetum.com>
2022-05-25Porting c8y log plugin hotfixes to main (#1163)Alex Solomes
* log plugin bugfix, tests, doc and service update - added logic to sort files by file metadata - added tests for c8y log plugin - updated documentation - updated service file to enable service if connect to c8y - log plugin handling failure case and info logs - updating request as failed if there is an issue retrieving the log - empty file error now returns an empty string
2022-05-20c8y_log_plugin implementation #1077initard
- log plugin is now a daemon - log file uses a configuration file to request logs from c8y UI - log plugin uses inotify to automatically update c8y of new logs files Signed-off-by: initard <solo@softwareag.com>
2022-05-06Closes #1131, reate tedge user in preinst (#1132)PradeepKiruvale
Signed-off-by: Pradeep Kumar K J <pradeepkumar.kj@softwareag.com>
2022-05-04Issue #1093 upgrade tedge (#1117)PradeepKiruvale
Signed-off-by: Pradeep Kumar K J <pradeepkumar.kj@softwareag.com>
2022-04-26Merge branch 'main' into feature/1030/configuration-managementRina Fujino
2022-04-25Add packaging scriptsRina Fujino
* Add --init option to deploy the operation files * Add debian packaging information to Cargo.toml * Add systemd service file * Add postinst script * Small refactoring Signed-off-by: Rina Fujino <18257209+rina23q@users.noreply.github.com>
2022-04-21Have a single unix user used for all the thin-edge daemons (#1085)PradeepKiruvale
* Closes #1031 single tedge user Signed-off-by: Pradeep Kumar K J <pradeepkumar.kj@softwareag.com> * Add script to upgrade tedge from 0.6 Signed-off-by: Pradeep Kumar K J <pradeepkumar.kj@softwareag.com>
2022-03-24[#761] tedge init (#993)PradeepKiruvale
* tedge init #Closes 761 * add file/directory creation errors * add the clear session to az and collectd mappers * refactor tedgecomponent * remove redundant code * subscribe to az/collectd topics in init_session * remove duplicate init_sessions
2022-02-28removed c8y_LogfileRequest from tedge-mapper (#931) (#949)Alex Solomes
- c8y_LogfileRequest is now a plugin so this makes no sense here Signed-off-by: initard <solo@softwareag.com> Co-authored-by: initard <solo@softwareag.com>
2022-02-22systemd init and connection reset fix (#911)initard
- removed sm-c8y-mapper from systemd init - connection reset by peer was caused by conflicting client names Signed-off-by: initard <solo@softwareag.com> Co-authored-by: Rina Fujino <18257209+rina23q@users.noreply.github.com> Co-authored-by: Michael Abel <info@abel-ikt.de>
2022-02-21Run tedge_agent and tedge_mapper --init as appropriate user by postinst (#903)Rina Fujino
Signed-off-by: Rina Fujino <18257209+rina23q@users.noreply.github.com>
2022-02-18Remove sm mapper from config scripts and update docs to not mention itLukasz Woznicki
anymore Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
2022-02-04[699] init/clear agent and mapper sessions (#797)PradeepKiruvale
* add init to tedge_agent * init mapper * init mapper and agent postinst * separate init and clear session functions * use tokio::mutex instead of std::mutex * pysys test for agent init * system test for mapper init session * use mqtt_channel init/clear session apis Co-authored-by: Pradeep Kumar K J <pradeepkumar.kj@sofwareag.com>
2021-12-09updated tedge agent post install to have access to sync and init (#697)initard
commands (#683) Signed-off-by: initard <solo@softwareag.com> Co-authored-by: initard <solo@softwareag.com>
2021-12-09Update docs for supported operations with up to date permissions (#685)Lukasz Woznicki
Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
2021-12-07#596 Declare supported operations (#652)Lukasz Woznicki
* Add operations to tedge_mapper * Add operations directory on install, remove supported ops from sm-c8y mapper * Update install command in postinst script to correctly create ops files Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
2021-11-15[CIT-671] Add more explicit message when service manager is not found (#568)Lukasz Woznicki
* Add more explicit message when service manager is not found * Add message on disconnect * Add conditional use of systemctl in deb scripts Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
2021-11-09Add missing debhelper (#567)Lukasz Woznicki
Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
2021-11-08[CIT-663] Add hints for upgrade of thin-edge.io (#557)Lukasz Woznicki
* Add note in installation doc about upgradingg * Add prerm scripts with hints to stop running mappers Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
2021-11-05[CIT-643] Document installation on system without deb package manager (#556)Lukasz Woznicki
* Add guide how to isntall without dpkg * Extend info in postinst scripts to help understand steps Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
2021-10-06Fix purge failure of tedge package (#474)Rina Fujino
Signed-off-by: Rina Fujino <18257209+rina23q@users.noreply.github.com>
2021-10-06Update postrm of tedge-agent (#473)Rina Fujino
2021-10-06Correct sudoer file to remove (#472)Rina Fujino
2021-10-05Update postinst of tedge-agent (#468)Rina Fujino
2021-10-04[CIT-607] Add log directory creation in tegde and tedge-agent postinst (#465)Rina Fujino
Signed-off-by: Rina Fujino <18257209+rina23q@users.noreply.github.com>
2021-10-04postrm update to remove leftover files after purge [CIT-556] (#460)Alex Solomes
* postrm rm users, groups, logs, .d files [CIT-556] Signed-off-by: Alex Solomes <alex.solomes@softwareag.com> * added case statement & purge/remove logic [CIT-556] Signed-off-by: Alex Solomes <alex.solomes@softwareag.com> * removing sudoers file [CIT-556] Signed-off-by: Alex Solomes <alex.solomes@softwareag.com> * remove sudoers from tedge-agent [CIT-556] Signed-off-by: Alex Solomes <alex.solomes@softwareag.com>
2021-09-21[CIT-577] Update postinst script of tedge-agent (#436)Rina Fujino
* [CIT-577] Update postinst script of tedge-agent - tedge-agent can execute other plugins than apt Signed-off-by: Rina Fujino <18257209+rina23q@users.noreply.github.com> * [CIT-471] Add tests part 1 Signed-off-by: Rina Fujino <18257209+rina23q@users.noreply.github.com>
2021-08-30[CIT-540] create .agent directory (#405)PradeepKiruvale
* [CIT-525] extend tedge dis/connect to dis/enable sm services * enable services postinstall * fix minor issues * address review comments * update the println * remove to_do macro * add system tests * add use_agent flag * refactor common code * address review comments * address review comment * Update tedge/src/cli/connect/command.rs * update log * [CIT-540] create .agent directory * fix the apt plugin permission issue * address PR comment * disable tests for tarpaulin * fix tarpaulin issue * revert the tarpaulin changes * update workflow Co-authored-by: Pradeep Kumar K J <pradeepkumar.kj@sofwareag.com> Co-authored-by: Sebastian Büttner <sebastian.buettner@softwareag.com>
2021-08-26[CIT-525] enable sm services (#396)PradeepKiruvale
* [CIT-525] extend tedge dis/connect to dis/enable sm services * enable services postinstall * fix minor issues * address review comments * update the println * remove to_do macro * add system tests * add use_agent flag * refactor common code * address review comments * address review comment * Update tedge/src/cli/connect/command.rs * update log Co-authored-by: Pradeep Kumar K J <pradeepkumar.kj@sofwareag.com> Co-authored-by: Sebastian Büttner <sebastian.buettner@softwareag.com>
2021-08-08[CIT-450] Tedge Agent - SM feature (#354)Lukasz Woznicki
* Add basic tedge_agent code and service * Add tedge_utils::fs atomically write file * Add short documentation notes for tedge_agent * Make sm-plugins path dynamic for agent * Update dependencies due to cargo audit hyper vuln Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
2021-07-06[CIT-380] Integrate collectd_mapper with tedge_mapper (#320)Lukasz Woznicki
* Move collectd_mapper to tedge_mapper * Add tedge-mapper-collectd service * Rename cli arg from dm to collectd Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
2021-06-03[CIT-377] rename tedge_dm_agent to collectd_mapper (#266)PradeepKiruvale
Co-authored-by: Pradeep K J <Pradeep K J pradeekumar.kj@softwareag.com>
2021-05-26[CIT-353] Support purge option for tedge debian package (#249)Albin Suresh
* [CIT-353] Support purge option for tedge debian package
2021-05-17Add deb configuration for dm_agent (#234)Lukasz Woznicki
Signed-off-by: Lukasz Woznicki <lukasz.woznicki@softwareag.com>
2021-03-29two bug fixes: include in mosquitto config, maintainer script path of tedge ↵Sebastian Büttner
(#125) fixing to small bugs: include shouldn`t be added multiple times to mosquitto.conf maintainer scripts path for tedge should be relative to repo root (as in tedge-mapper)
2021-03-26Updated postinstallation script as part of [CIT-289] (#121)Sebastian Büttner
Adding creation of mosquitto-conf folder and device certs folder. Adding /etc/tedge/mosquitto-conf as include in mosquitto.conf
2021-03-15[CIT-70] Create systemd service for tegde-mapper (#92)Rina Fujino
* Enhance tedge-mapper debian package - Add tedge-mapper systemd service script - Add postinst debian package script - Add debian package configurations in Cargo.toml
2021-03-12[CIT-264] Enhance tedge debian package with maintainer-script (#91)Sebastian Büttner
* [CIT-264] Adding postinst script for tedge debian package. The posinst script contains creation of - users - groups - /etc/tedge folder - file to /etc/sudoers.d * Extended comments with --gecos arguments moved the postinst script to new place to be aligned with tedge-mapper * changed to check for already existent users and groups using install for directory creation in one command * Update configuration/debian/tedge/postinst Co-authored-by: Rina Fujino <18257209+rina23q@users.noreply.github.com> * Update configuration/debian/tedge/postinst Co-authored-by: Rina Fujino <18257209+rina23q@users.noreply.github.com> * removed optionsystemd-units = { enable = false } Co-authored-by: Rina Fujino <18257209+rina23q@users.noreply.github.com>