summaryrefslogtreecommitdiffstats
path: root/configuration
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-06-16Enable systemd watchdog monitoring for tedge-watchdog daemon (#1196)PradeepKiruvale
* Closes #1174, add watchdog to tedge watchdog Signed-off-by: Pradeep Kumar K J <pradeepkumar.kj@softwareag.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-20update rename of c8y_log_plugininitard
Signed-off-by: initard <solo@softwareag.com>
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-28update tedge update script (#1113)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-04-06[953] tedge watchdog (#1026)PradeepKiruvale
* [953] tedge-systemd-watchdog * update service file to watchdog * Closes #953 thin-edge watchdog * health check for all the services * update document
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-15fixed session name buginitard
- renamed jwt token session - renamed file C8y_LogfileRequest to c8y_LogfileRequest - added cargo deb asset to create binary in /usr/bin/tedge_logfile_request_plugin - closing mqtt client connection in plugin Signed-off-by: initard <solo@softwareag.com>
2022-02-15adding tedge_log_request_plugin to workflow (#790)initard
- cargo-deb config in cargo.toml - cargo build in workflow - stripping binary - updated get-thin-edge.io script Signed-off-by: initard <solo@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>
2022-01-10#639 Remove the dependency on systemd (#729)Rina Fujino
* The purpose of this change is to get rid of the hard-coded dependencies on systemd from tedge connect/disconnect, to allow users to use other system managers, e.g. OpenRC, initd, etc.. * If /etc/tedge/system.toml exists, tedge connect/disconnect uses the service manager defined in the file. * If the file is not given by user, tedge connect/disconnect uses /bin/systemctl as the service manager. (the same behaviour as we have it so far) * Delete old service implementation files for BSD, OpenRC, systemd, and NULL. * Add system.toml example files for BSD and OpenRC. * Add a reference guide to explain the format of system.toml configuration file. Signed-off-by: Rina Fujino <18257209+rina23q@users.noreply.github.com>
2021-12-09creating runtime directory /run/tedge_agent (#683) (#698)initard
* creating runtime directory /run/tedge_agent (#683) Signed-off-by: initard <solo@softwareag.com> * ignoring test due to permission error (#683) Signed-off-by: initard <solo@softwareag.com> Co-authored-by: initard <solo@softwareag.com>
2021-12-09restart tedge mapper before tedge agent (#683) (#696)initard
Signed-off-by: initard <solo@softwareag.com> Co-authored-by: initard <solo@softwareag.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-17Delete tedge.service as it is no longer requiredSebastian Büttner
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-16[CIT-468] Add a systemd file for tedge-mapper-sm-c8y (#381)Rina Fujino
Signed-off-by: Rina Fujino <18257209+rina23q@users.noreply.github.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-08-06fix broken mqtt library test (#357)PradeepKiruvale
* fix broken mqtt library test * move config files into test directory * Create only one istance of broker for all tests * remove dependancy on the config file * cargo fmt * address review comments * remove unused dev-dependencies Co-authored-by: Pradeep Kumar K J <pradeepkumar.kj@sofwareag.com>
2021-07-21[CIT-420] mqtt packet size (#346)PradeepKiruvale
* CIT-420] mqtt reconnection on bigger packets * cargo fmt * [CIT-420] Add max_packet_size * [CIT-420] cap packet size at 256MB * [CIT-420] Address review comments * Add integration test * added timeout * fix the broken test * [CIT-420] refactor code * packet creation function * Fix error handling * Fix the error handling * Fix test * Add a new config * update the ports * format * remove bridge_max_packet_size * Rename functions and add comments Co-authored-by: Pradeep K J <Pradeep K J pradeekumar.kj@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-08[CIT-396] Include tedge collectd.conf in debian package (#276)Albin Suresh
* [CIT-396] Include tedge collectd.conf in debian package * Include binary asset in debian package * Update tedge collectd.conf path in workflows
2021-06-07[CIT-371] Add service file for azure mapper (#257)Lukasz Woznicki
* Add service file for azure * Update tedge-mapper-az.service 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-31[CIT-366] Minimal monitoring stats for memory and disk (#260)Albin Suresh
2021-05-26[CIT-353] Support purge option for tedge debian package (#249)Albin Suresh
* [CIT-353] Support purge option for tedge debian package